"Fossies" - the Fresh Open Source Software Archive

Member "Django-1.11.25/tests/migrations/migrations_test_apps/alter_fk/author_app/migrations/0001_initial.py" (1 Oct 2019, 462 Bytes) of package /linux/www/Django-1.11.25.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 from __future__ import unicode_literals
    3 
    4 from django.db import migrations, models
    5 
    6 
    7 class Migration(migrations.Migration):
    8 
    9     dependencies = [
   10     ]
   11 
   12     operations = [
   13         migrations.CreateModel(
   14             name='Author',
   15             fields=[
   16                 ('id', models.AutoField(serialize=False, auto_created=True, primary_key=True)),
   17                 ('name', models.CharField(max_length=50)),
   18             ],
   19         ),
   20     ]