syntax: rename package to djangoldp_notification (singular)
This commit is contained in:
36
djangoldp_notification/migrations/0001_initial.py
Normal file
36
djangoldp_notification/migrations/0001_initial.py
Normal file
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11 on 2019-01-08 08:32
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Notification',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('object', models.URLField()),
|
||||
('type', models.CharField(max_length=255)),
|
||||
('summary', models.TextField()),
|
||||
('date', models.DateTimeField(auto_now_add=True)),
|
||||
('read', models.BooleanField()),
|
||||
('author_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='author', to=settings.AUTH_USER_MODEL)),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user', to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
options={
|
||||
'ordering': ['date'],
|
||||
'permissions': (('view_notification', 'Read'), ('control_notification', 'Control')),
|
||||
},
|
||||
),
|
||||
]
|
0
djangoldp_notification/migrations/__init__.py
Normal file
0
djangoldp_notification/migrations/__init__.py
Normal file
Reference in New Issue
Block a user