2017-04-07 16:15:53 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
2017-05-09 13:49:56 +02:00
|
|
|
# Generated by Django 1.10.7 on 2017-05-09 11:48
|
2017-04-07 16:15:53 +02:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
import django.db.models.deletion
|
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2019-01-06 16:22:33 +01:00
|
|
|
("contenttypes", "0002_remove_content_type_name"),
|
|
|
|
("users", "0003_group"),
|
2017-04-07 16:15:53 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="PersonalNote",
|
2017-04-07 16:15:53 +02:00
|
|
|
fields=[
|
2019-01-06 16:22:33 +01:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("object_id", models.PositiveIntegerField()),
|
|
|
|
("note", models.TextField(blank=True)),
|
|
|
|
("star", models.BooleanField(default=False)),
|
|
|
|
(
|
|
|
|
"content_type",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
to="contenttypes.ContentType",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"user",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
related_name="personal_notes",
|
|
|
|
to=settings.AUTH_USER_MODEL,
|
|
|
|
),
|
|
|
|
),
|
2017-04-07 16:15:53 +02:00
|
|
|
],
|
2019-01-06 16:22:33 +01:00
|
|
|
options={"default_permissions": ()},
|
|
|
|
)
|
2017-04-07 16:15:53 +02:00
|
|
|
]
|