Commit 69bdfb2c authored by Matthieu Fesselier's avatar Matthieu Fesselier

syntax: rename author_user in author

parent da08da00
Pipeline #3441 passed with stage
in 27 seconds
......@@ -11,7 +11,7 @@ class NotificationFactory(factory.django.DjangoModelFactory):
type = factory.Faker('text', max_nb_chars=50)
summary = factory.Faker('paragraph', nb_sentences=3, variable_nb_sentences=True)
author_user = factory.Faker('url')
author = factory.Faker('url')
user = factory.Iterator(settings.AUTH_USER_MODEL.objects.all())
date = factory.Faker('past_datetime')
unread = factory.Faker('boolean')
......
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-05-07 08:58
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('djangoldp_notification', '0004_auto_20190425_1141'),
]
operations = [
migrations.RenameField(
model_name='notification',
old_name='author_user',
new_name='author',
),
]
......@@ -19,7 +19,7 @@ from djangoldp.permissions import InboxPermissions
class Notification(Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='inbox', on_delete=models.deletion.CASCADE)
author_user = LDPUrlField()
author = LDPUrlField()
object = LDPUrlField()
type = models.CharField(max_length=255)
summary = models.TextField()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment