You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wish/wishlist/migrations/0001_initial.py

47 lines
2.4 KiB
Python

# Generated by Django 3.1.6 on 2021-02-14 07:28
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='WishList',
fields=[
('slug', models.SlugField(editable=False, help_text="URL suffix for this wishlist. Must not clash existing ones, nor be 'user' nor 'item'.", primary_key=True, serialize=False)),
('name', models.TextField(help_text='The title of the wishlist.')),
('description', models.TextField(blank=True, help_text='Optional (public) description of the wishlist.')),
('hidden', models.BooleanField(default=True, help_text="Whether to hide on the users' list of their wishlists.")),
('hide_granted', models.BooleanField(default=False, help_text='Whether to hide already fulfilled wishes.')),
('owner', models.ForeignKey(help_text='The user owning this wishlist.', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.CreateModel(
name='WishedItem',
fields=[
('id', models.AutoField(primary_key=True, serialize=False)),
('name', models.TextField(help_text='Name of the wished item.')),
('description', models.TextField(help_text='Detailed description of the item, for example its specification.')),
('wishlists', models.ManyToManyField(help_text='Wishlists that this wish should be part of.', related_name='wishes', to='wishlist.WishList')),
],
),
migrations.CreateModel(
name='DreamComeTrue',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('when', models.DateTimeField(auto_now_add=True, help_text='When the dream came true')),
('note', models.TextField(blank=True, help_text='Optional note, e.g. tracking number. Private, shown only to owner.')),
('item', models.ForeignKey(help_text='What wish has been fulfilled.', on_delete=django.db.models.deletion.CASCADE, to='wishlist.wisheditem')),
],
),
]