Merge branch 'bugfix/ldp-field-object' into 'master'

bugfix: add @id to object field

See merge request startinblox/djangoldp-packages/djangoldp-notifications!6
This commit is contained in:
Matthieu Fesselier 2019-03-01 04:21:18 +00:00
commit b50066a381
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-03-01 04:18
from __future__ import unicode_literals
from django.db import migrations
import djangoldp.fields
class Migration(migrations.Migration):
dependencies = [
('djangoldp_notification', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='notification',
name='object',
field=djangoldp.fields.LDPUrlField(),
),
]

View File

@ -13,7 +13,7 @@ from django.contrib.admin.models import LogEntry
class Notification(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='inbox')
author_user = LDPUrlField()
object = models.URLField()
object = LDPUrlField()
type = models.CharField(max_length=255)
summary = models.TextField()
date = models.DateTimeField(auto_now_add=True)