Sith/counter/migrations/0001_initial.py

29 lines
1.2 KiB
Python
Raw Normal View History

2016-03-28 12:54:35 +00:00
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
2016-03-29 10:45:10 +00:00
('club', '0001_initial'),
2016-03-28 12:54:35 +00:00
('accounting', '0001_initial'),
2016-03-29 10:45:10 +00:00
('core', '0001_initial'),
2016-03-28 12:54:35 +00:00
]
operations = [
migrations.CreateModel(
name='Counter',
fields=[
2016-03-29 10:45:10 +00:00
('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
2016-03-28 12:54:35 +00:00
('name', models.CharField(max_length=30, verbose_name='name')),
2016-03-29 10:45:10 +00:00
('type', models.CharField(max_length=255, verbose_name='subscription type', choices=[('BAR', 'Bar'), ('OFFICE', 'Office')])),
2016-03-28 12:54:35 +00:00
('club', models.ForeignKey(to='club.Club', related_name='counters')),
2016-03-29 10:45:10 +00:00
('edit_groups', models.ManyToManyField(to='core.Group', blank=True, related_name='editable_counters')),
('products', models.ManyToManyField(to='accounting.Product', blank=True, related_name='counters')),
('view_groups', models.ManyToManyField(to='core.Group', blank=True, related_name='viewable_counters')),
2016-03-28 12:54:35 +00:00
],
),
]