mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Merged regressiontests and modeltests into the test root.
This commit is contained in:
25
tests/bulk_create/models.py
Normal file
25
tests/bulk_create/models.py
Normal file
@@ -0,0 +1,25 @@
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Country(models.Model):
|
||||
name = models.CharField(max_length=255)
|
||||
iso_two_letter = models.CharField(max_length=2)
|
||||
|
||||
class Place(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
|
||||
class Restaurant(Place):
|
||||
pass
|
||||
|
||||
class Pizzeria(Restaurant):
|
||||
pass
|
||||
|
||||
class State(models.Model):
|
||||
two_letter_code = models.CharField(max_length=2, primary_key=True)
|
||||
|
||||
class TwoFields(models.Model):
|
||||
f1 = models.IntegerField(unique=True)
|
||||
f2 = models.IntegerField(unique=True)
|
||||
Reference in New Issue
Block a user