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:
commit
b50066a381
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):
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user