~ubuntu-branches/debian/sid/python-django/sid

« back to all changes in this revision

Viewing changes to tests/migrations/test_migrations_first/second.py

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2014-09-17 14:15:11 UTC
  • mfrom: (1.3.17) (6.2.18 experimental)
  • Revision ID: package-import@ubuntu.com-20140917141511-icneokthe9ww5sk4
Tags: 1.7-2
* Release to unstable.
* Add a migrate-south sample script to help users apply their South
  migrations. Thanks to Brian May.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
        ("migrations", "thefirst"),
 
11
        ("migrations2", "0002_second"),
 
12
    ]
 
13
 
 
14
    operations = [
 
15
 
 
16
        migrations.DeleteModel("Tribble"),
 
17
 
 
18
        migrations.RemoveField("Author", "silly_field"),
 
19
 
 
20
        migrations.AddField("Author", "rating", models.IntegerField(default=0)),
 
21
 
 
22
        migrations.CreateModel(
 
23
            "Book",
 
24
            [
 
25
                ("id", models.AutoField(primary_key=True)),
 
26
                ("author", models.ForeignKey("migrations.Author", null=True)),
 
27
            ],
 
28
        )
 
29
 
 
30
    ]