"Fossies" - the Fresh Open Source Software Archive

Member "taiga-back-5.0.6/taiga/users/migrations/0002_auto_20140903_0916.py" (15 Jan 2020, 2206 Bytes) of package /linux/www/taiga-back-5.0.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "0002_auto_20140903_0916.py" see the Fossies "Dox" file reference documentation.

    1 # -*- coding: utf-8 -*-
    2 from __future__ import unicode_literals
    3 
    4 from django.db import models, migrations
    5 import django.contrib.postgres.fields
    6 
    7 
    8 class Migration(migrations.Migration):
    9 
   10     dependencies = [
   11         ('users', '0001_initial'),
   12     ]
   13 
   14     operations = [
   15         migrations.CreateModel(
   16             name='Role',
   17             fields=[
   18                 ('id', models.AutoField(auto_created=True, verbose_name='ID', serialize=False, primary_key=True)),
   19                 ('name', models.CharField(verbose_name='name', max_length=200)),
   20                 ('slug', models.SlugField(verbose_name='slug', max_length=250, blank=True)),
   21                 ('permissions', django.contrib.postgres.fields.ArrayField(base_field=models.TextField(choices=[('view_project', 'View project'), ('view_milestones', 'View milestones'), ('add_milestone', 'Add milestone'), ('modify_milestone', 'Modify milestone'), ('delete_milestone', 'Delete milestone'), ('view_us', 'View user story'), ('add_us', 'Add user story'), ('modify_us', 'Modify user story'), ('delete_us', 'Delete user story'), ('view_tasks', 'View tasks'), ('add_task', 'Add task'), ('modify_task', 'Modify task'), ('delete_task', 'Delete task'), ('view_issues', 'View issues'), ('vote_issues', 'Vote issues'), ('add_issue', 'Add issue'), ('modify_issue', 'Modify issue'), ('delete_issue', 'Delete issue'), ('view_wiki_pages', 'View wiki pages'), ('add_wiki_page', 'Add wiki page'), ('modify_wiki_page', 'Modify wiki page'), ('delete_wiki_page', 'Delete wiki page'), ('view_wiki_links', 'View wiki links'), ('add_wiki_link', 'Add wiki link'), ('modify_wiki_link', 'Modify wiki link'), ('delete_wiki_link', 'Delete wiki link')]), blank=True, default=[], null=True, size=None, verbose_name='permissions')),
   22                 ('order', models.IntegerField(verbose_name='order', default=10)),
   23                 ('computable', models.BooleanField(default=True)),
   24             ],
   25             options={
   26                 'verbose_name': 'role',
   27                 'permissions': (('view_role', 'Can view role'),),
   28                 'verbose_name_plural': 'roles',
   29                 'ordering': ['order', 'slug'],
   30             },
   31             bases=(models.Model,),
   32         ),
   33     ]