0016_rowlevelpermission.py 935 B

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import migrations, models
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('auth', '0006_require_contenttypes_0002'),
  7. ('offers', '0007_offersubscription_comments'),
  8. ('members', '0015_auto_20170824_2308'),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name='RowLevelPermission',
  13. fields=[
  14. ('permission_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='auth.Permission')),
  15. ('description', models.TextField(blank=True)),
  16. ('offer', models.ForeignKey(verbose_name='Offre', to='offers.Offer', help_text="Offre dont l'utilisateur est autoris\xe9 \xe0 voir et modifier les membres et les abonnements.", null=True)),
  17. ],
  18. bases=('auth.permission',),
  19. ),
  20. ]