Merge branch 'cleanup-migrations' into 'master'
minor: cleanup-migrations See merge request startinblox/djangoldp-packages/djangoldp-notifications!16
This commit is contained in:
commit
8049c8c5bb
@ -1,5 +1,5 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Generated by Django 1.11 on 2019-02-28 01:14
|
# Generated by Django 1.11.20 on 2019-08-28 12:01
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
@ -21,17 +21,18 @@ class Migration(migrations.Migration):
|
|||||||
name='Notification',
|
name='Notification',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('author_user', djangoldp.fields.LDPUrlField()),
|
('author', djangoldp.fields.LDPUrlField()),
|
||||||
('object', models.URLField()),
|
('object', djangoldp.fields.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)),
|
||||||
('read', models.BooleanField()),
|
('unread', models.BooleanField(default=True)),
|
||||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='inbox', to=settings.AUTH_USER_MODEL)),
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='inbox', to=settings.AUTH_USER_MODEL)),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'ordering': ['date'],
|
'ordering': ['-date'],
|
||||||
'permissions': (('view_notification', 'Read'), ('control_notification', 'Control')),
|
'abstract': False,
|
||||||
|
'default_permissions': ('add', 'change', 'delete', 'view', 'control'),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
@ -42,7 +43,8 @@ class Migration(migrations.Migration):
|
|||||||
('inbox', models.URLField()),
|
('inbox', models.URLField()),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'permissions': (('view_notification', 'Read'), ('control_notification', 'Control')),
|
'abstract': False,
|
||||||
|
'default_permissions': ('add', 'change', 'delete', 'view', 'control'),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
# -*- 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(),
|
|
||||||
),
|
|
||||||
]
|
|
@ -1,24 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.11 on 2019-04-04 03:43
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('djangoldp_notification', '0002_auto_20190301_0418'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.RemoveField(
|
|
||||||
model_name='notification',
|
|
||||||
name='read',
|
|
||||||
),
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='notification',
|
|
||||||
name='unread',
|
|
||||||
field=models.BooleanField(default=True),
|
|
||||||
),
|
|
||||||
]
|
|
@ -1,23 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.11 on 2019-04-25 11:41
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('djangoldp_notification', '0003_auto_20190404_0343'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterModelOptions(
|
|
||||||
name='notification',
|
|
||||||
options={'default_permissions': ('add', 'change', 'delete', 'view', 'control'), 'ordering': ['date']},
|
|
||||||
),
|
|
||||||
migrations.AlterModelOptions(
|
|
||||||
name='subscription',
|
|
||||||
options={'default_permissions': ('add', 'change', 'delete', 'view', 'control')},
|
|
||||||
),
|
|
||||||
]
|
|
@ -1,20 +0,0 @@
|
|||||||
# -*- 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',
|
|
||||||
),
|
|
||||||
]
|
|
@ -1,19 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.11 on 2019-06-19 08:43
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from django.db import migrations
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('djangoldp_notification', '0005_auto_20190507_0858'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterModelOptions(
|
|
||||||
name='notification',
|
|
||||||
options={'default_permissions': ('add', 'change', 'delete', 'view', 'control'), 'ordering': ['-date']},
|
|
||||||
),
|
|
||||||
]
|
|
Loading…
Reference in New Issue
Block a user