Commit 74610626 authored by Sylvain Le Bon's avatar Sylvain Le Bon

update: date on notifications

parent d16e0a89
......@@ -122,6 +122,11 @@ In the following example, besides the urls `/members/` and `/members/<pk>/`, two
url(r'^members/', LDPViewSet.urls(model=Member, nested_fields=("skills",))),
```
## Custom Meta options on models
### rdf_type
### auto_author
## License
Licence MIT
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-02-28 19:31
# Generated by Django 1.11 on 2018-11-08 15:58
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):
......@@ -10,9 +12,25 @@ class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='LDNotification',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('author', models.URLField()),
('object', models.URLField()),
('type', models.CharField(max_length=255)),
('summary', models.TextField()),
('date', models.DateTimeField(auto_now_add=True)),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'permissions': (('view_todo', 'Read'), ('control_todo', 'Control')),
},
),
migrations.CreateModel(
name='LDPSource',
fields=[
......@@ -20,5 +38,9 @@ class Migration(migrations.Migration):
('container', models.URLField()),
('federation', models.CharField(max_length=255)),
],
options={
'ordering': ('federation',),
'permissions': (('view_source', 'acl:Read'), ('control_source', 'acl:Control')),
},
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-09-13 18:00
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):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('djangoldp', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='LDNotification',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('author', models.URLField()),
('object', models.URLField()),
('type', models.CharField(max_length=255)),
('summary', models.TextField()),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.AlterModelOptions(
name='ldpsource',
options={'ordering': ('federation',), 'permissions': (('view_source', 'acl:Read'), ('control_source', 'acl:Control'))},
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-10-04 11:48
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('djangoldp', '0002_auto_20180913_1800'),
]
operations = [
migrations.AlterModelOptions(
name='ldnotification',
options={'permissions': (('view_todo', 'Read'), ('control_todo', 'Control'))},
),
]
......@@ -23,6 +23,7 @@ class LDNotification(models.Model):
object = models.URLField()
type = models.CharField(max_length=255)
summary = models.TextField()
date = models.DateTimeField(auto_now_add=True)
class Meta:
permissions = (
('view_todo', 'Read'),
......
......@@ -2,7 +2,7 @@ from setuptools import setup
setup(
name='djangoldp',
version='0.5a8',
version='0.5a9',
url='https://git.happy-dev.fr/happy-dev/djangoldp/',
author="Startin'blox",
author_email='sylvain@happy-dev.fr',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment