"Fossies" - the Fresh Open Source Software Archive

Member "seahub-7.1.0-pro/seahub/institutions/migrations/0001_initial.py" (30 Dec 2019, 942 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 django.utils.timezone
    6 
    7 
    8 class Migration(migrations.Migration):
    9 
   10     dependencies = [
   11     ]
   12 
   13     operations = [
   14         migrations.CreateModel(
   15             name='Institution',
   16             fields=[
   17                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
   18                 ('name', models.CharField(max_length=200)),
   19                 ('create_time', models.DateTimeField(default=django.utils.timezone.now)),
   20             ],
   21         ),
   22         migrations.CreateModel(
   23             name='InstitutionAdmin',
   24             fields=[
   25                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
   26                 ('user', models.EmailField(max_length=254)),
   27                 ('institution', models.ForeignKey(to='institutions.Institution')),
   28             ],
   29         ),
   30     ]