bugfix: add @id to object field
This commit is contained in:
parent
3f2c0fbf1e
commit
6246b2d629
21
djangoldp_notification/migrations/0002_auto_20190301_0418.py
Normal file
21
djangoldp_notification/migrations/0002_auto_20190301_0418.py
Normal 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(),
|
||||||
|
),
|
||||||
|
]
|
@ -13,7 +13,7 @@ from django.contrib.admin.models import LogEntry
|
|||||||
class Notification(models.Model):
|
class Notification(models.Model):
|
||||||
user = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='inbox')
|
user = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='inbox')
|
||||||
author_user = LDPUrlField()
|
author_user = LDPUrlField()
|
||||||
object = models.URLField()
|
object = LDPUrlField()
|
||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user