"Fossies" - the Fresh Open Source Software Archive

Member "seahub-7.1.0-pro/seahub/wiki/migrations/0002_auto_20180326_0548.py" (30 Dec 2019, 1125 Bytes) of package /linux/www/seahub-7.1.0-pro.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.

    1 # -*- coding: utf-8 -*-
    2 
    3 
    4 from django.db import migrations, models
    5 import seahub.base.fields
    6 import django.utils.timezone
    7 
    8 
    9 class Migration(migrations.Migration):
   10 
   11     dependencies = [
   12         ('wiki', '0001_initial'),
   13     ]
   14 
   15     operations = [
   16         migrations.CreateModel(
   17             name='Wiki',
   18             fields=[
   19                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
   20                 ('username', seahub.base.fields.LowerCaseCharField(max_length=255)),
   21                 ('name', models.CharField(max_length=255)),
   22                 ('slug', models.CharField(unique=True, max_length=255)),
   23                 ('repo_id', models.CharField(max_length=36)),
   24                 ('permission', models.CharField(max_length=50)),
   25                 ('created_at', models.DateTimeField(default=django.utils.timezone.now, db_index=True)),
   26             ],
   27             options={
   28                 'ordering': ['name'],
   29             },
   30         ),
   31         migrations.AlterUniqueTogether(
   32             name='wiki',
   33             unique_together={('username', 'repo_id')},
   34         ),
   35     ]