Skip to content

Instantly share code, notes, and snippets.

@owais
Created September 1, 2014 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owais/cabc53a79e7b092457cc to your computer and use it in GitHub Desktop.
Save owais/cabc53a79e7b092457cc to your computer and use it in GitHub Desktop.
Auth 0002 migration
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from med_social.db import operations as db_operations
class Migration(migrations.Migration):
dependencies = [
('auth', '0001_initial'),
('vendors', '__first__'),
]
operations = [
db_operations.AddField(
app_label='auth',
model_name='group',
name='display_name',
field=models.CharField(default=b'', max_length=67, null=True, verbose_name=b'Role Name'),
preserve_default=True,
),
db_operations.AddField(
app_label='auth',
model_name='group',
name='kind',
field=models.PositiveSmallIntegerField(default=None, null=True, verbose_name=b'kind', blank=True),
preserve_default=True,
),
db_operations.AddField(
app_label='auth',
model_name='group',
name='vendor',
field=models.ForeignKey(related_name=b'groups', blank=True, to='vendors.Vendor', null=True),
preserve_default=True,
),
db_operations.AddField(
app_label='auth',
model_name='permission',
name='visibility',
field=models.PositiveSmallIntegerField(blank=True, null=True, verbose_name=b'visibility', choices=[(1, b'Client'), (2, b'Vendor'), (3, b'All')]),
preserve_default=True,
),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment