Skip to content
Snippets Groups Projects
Commit 4d4b21e7 authored by Matthieu Fesselier's avatar Matthieu Fesselier
Browse files

syntax: switch from read to unread

parent eb1d3228
No related branches found
No related tags found
No related merge requests found
...@@ -13,5 +13,5 @@ class NotificationFactory(factory.django.DjangoModelFactory): ...@@ -13,5 +13,5 @@ class NotificationFactory(factory.django.DjangoModelFactory):
author_user = factory.Faker('url') author_user = factory.Faker('url')
user = factory.Iterator(User.objects.all()) user = factory.Iterator(User.objects.all())
date = factory.Faker('past_datetime') date = factory.Faker('past_datetime')
read = factory.Faker('boolean') unread = factory.Faker('boolean')
object = factory.Faker('url') object = factory.Faker('url')
\ No newline at end of file
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-04-04 03:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('djangoldp_notification', '0002_auto_20190301_0418'),
]
operations = [
migrations.RemoveField(
model_name='notification',
name='read',
),
migrations.AddField(
model_name='notification',
name='unread',
field=models.BooleanField(default=True),
),
]
...@@ -23,7 +23,7 @@ class Notification(Model): ...@@ -23,7 +23,7 @@ class Notification(Model):
type = models.CharField(max_length=255) type = models.CharField(max_length=255)
summary = models.TextField() summary = models.TextField()
date = models.DateTimeField(auto_now_add=True) date = models.DateTimeField(auto_now_add=True)
read = models.BooleanField() unread = models.BooleanField(default=True)
class Meta: class Meta:
permissions = ( permissions = (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment