/tests/regressiontests/admin_registration/models.py

https://code.google.com/p/mango-py/ · Python · 15 lines · 8 code · 4 blank · 3 comment · 0 complexity · cd7b800457feaade9a8e52e646c14ad3 MD5 · raw file

  1. """
  2. Tests for various ways of registering models with the admin site.
  3. """
  4. from django.db import models
  5. class Person(models.Model):
  6. name = models.CharField(max_length=200)
  7. class Location(models.Model):
  8. class Meta:
  9. abstract = True
  10. class Place(Location):
  11. name = models.CharField(max_length=200)