File: 0001_initial.py

package info (click to toggle)
django-rq 3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 648 kB
  • sloc: python: 3,184; makefile: 7
file content (32 lines) | stat: -rw-r--r-- 967 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from django.db import migrations, models


class Migration(migrations.Migration):
    """Create Django contenttype for queue"""

    initial = True
    dependencies = []
    operations = [
        migrations.CreateModel(
            name='Queue',
            fields=[
                # Does not create any table / fields in the database
                # Registers the Queue model as migrated
                (
                    'id',
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name='ID'
                    )
                ),
            ],
            options={
                # Enables the Django contenttype framework for django_rq
                'permissions': [['view', 'Access admin page']],
                'managed': False,
                'default_permissions': (),
            },
        ),
    ]