Skip to content
Snippets Groups Projects
Commit 7a7d8666 authored by Sylvain Le Bon's avatar Sylvain Le Bon
Browse files

feature: LD notification

parent bb5794f5
No related branches found
No related tags found
No related merge requests found
# -*- 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'))},
),
]
from django.conf import settings
from django.db import models
class LDPSource(models.Model):
......@@ -14,3 +15,11 @@ class LDPSource(models.Model):
def __str__(self):
return "{}: {}".format(self.federation, self.container)
class LDNotification(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL)
author = models.URLField()
object = models.URLField()
type = models.CharField(max_length=255)
summary = models.TextField()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment