mirror of
https://github.com/pinry/pinry.git
synced 2025-11-13 08:35:41 +01:00
Refactor apps to be in repo folder
This commit is contained in:
51
core/migrations/0001_initial.py
Normal file
51
core/migrations/0001_initial.py
Normal file
@@ -0,0 +1,51 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
import taggit.managers
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('taggit', '0002_auto_20150616_2121'),
|
||||
('users', '__first__'),
|
||||
('django_images', '__first__'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Pin',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('url', models.URLField(null=True)),
|
||||
('origin', models.URLField(null=True)),
|
||||
('description', models.TextField(null=True, blank=True)),
|
||||
('published', models.DateTimeField(auto_now_add=True)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Image',
|
||||
fields=[
|
||||
],
|
||||
options={
|
||||
'proxy': True,
|
||||
},
|
||||
bases=('django_images.image',),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='pin',
|
||||
name='image',
|
||||
field=models.ForeignKey(related_name='pin', to='core.Image'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='pin',
|
||||
name='submitter',
|
||||
field=models.ForeignKey(to='users.User'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='pin',
|
||||
name='tags',
|
||||
field=taggit.managers.TaggableManager(to='taggit.Tag', through='taggit.TaggedItem', help_text='A comma-separated list of tags.', verbose_name='Tags'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user