bugfix: add @id to object field

This commit is contained in:
Matthieu Fesselier 2019-03-01 11:20:21 +07:00
parent 3f2c0fbf1e
commit 6246b2d629
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)