2008-07-24 02:58:06 +08:00
|
|
|
"""
|
|
|
|
Tests for various ways of registering models with the admin site.
|
|
|
|
"""
|
|
|
|
|
|
|
|
from django.db import models
|
|
|
|
|
2011-10-14 02:51:33 +08:00
|
|
|
|
2008-07-24 02:58:06 +08:00
|
|
|
class Person(models.Model):
|
|
|
|
name = models.CharField(max_length=200)
|
|
|
|
|
2012-12-18 08:04:10 +08:00
|
|
|
|
|
|
|
class Traveler(Person):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2011-02-23 21:43:21 +08:00
|
|
|
class Location(models.Model):
|
|
|
|
class Meta:
|
|
|
|
abstract = True
|
|
|
|
|
2012-12-18 08:04:10 +08:00
|
|
|
|
2011-02-23 21:43:21 +08:00
|
|
|
class Place(Location):
|
2008-07-24 02:58:06 +08:00
|
|
|
name = models.CharField(max_length=200)
|