minor: cleanup-migrations
This commit is contained in:
parent
7f87f83b80
commit
c0f7f973a4
@ -1,5 +1,5 @@
|
||||
# -*- 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 django.conf import settings
|
||||
@ -21,17 +21,18 @@ class Migration(migrations.Migration):
|
||||
name='Notification',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('author_user', djangoldp.fields.LDPUrlField()),
|
||||
('object', models.URLField()),
|
||||
('author', djangoldp.fields.LDPUrlField()),
|
||||
('object', djangoldp.fields.LDPUrlField()),
|
||||
('type', models.CharField(max_length=255)),
|
||||
('summary', models.TextField()),
|
||||
('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)),
|
||||
],
|
||||
options={
|
||||
'ordering': ['date'],
|
||||
'permissions': (('view_notification', 'Read'), ('control_notification', 'Control')),
|
||||
'ordering': ['-date'],
|
||||
'abstract': False,
|
||||
'default_permissions': ('add', 'change', 'delete', 'view', 'control'),
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
@ -42,7 +43,8 @@ class Migration(migrations.Migration):
|
||||
('inbox', models.URLField()),
|
||||
],
|
||||
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