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

« back to all changes in this revision

Viewing changes to tests/bulk_create/models.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:
5
5
    name = models.CharField(max_length=255)
6
6
    iso_two_letter = models.CharField(max_length=2)
7
7
 
 
8
 
8
9
class Place(models.Model):
9
10
    name = models.CharField(max_length=100)
10
11
 
11
12
    class Meta:
12
13
        abstract = True
13
14
 
 
15
 
14
16
class Restaurant(Place):
15
17
    pass
16
18
 
 
19
 
17
20
class Pizzeria(Restaurant):
18
21
    pass
19
22
 
 
23
 
20
24
class State(models.Model):
21
25
    two_letter_code = models.CharField(max_length=2, primary_key=True)
22
26
 
 
27
 
23
28
class TwoFields(models.Model):
24
29
    f1 = models.IntegerField(unique=True)
25
30
    f2 = models.IntegerField(unique=True)