Commit 27222fdb authored by Laury Bueno's avatar Laury Bueno
Browse files

Add migration

parent 8b432eca
# Generated by Django 2.2.5 on 2019-09-20 20:01
import autoslug.fields
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auth', '0011_update_proxy_permissions'),
('courses', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Workspace',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255, verbose_name='Name')),
('description', models.TextField(blank=True, help_text='Enter the contract description (optional)', verbose_name='description')),
('slug', autoslug.fields.AutoSlugField(editable=False, max_length=128, populate_from='name', unique=True, verbose_name='Slug')),
('unities', django.contrib.postgres.fields.ArrayField(base_field=models.CharField(blank=True, max_length=255), help_text='Possibly cities. This field stores the user declared unities on contract creation. This are used to distinguish some special grupos associated to the contract', size=None)),
('classes', models.ManyToManyField(related_name='contract', to='courses.Class')),
('groups', models.ManyToManyField(blank=True, help_text='Groups created to enforce this contract restrictions in several other models', related_name='contract', to='auth.Group', verbose_name='groups')),
],
options={
'verbose_name': 'Contract',
'verbose_name_plural': 'Contracts',
},
),
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment