/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
- """
- Tests for various ways of registering models with the admin site.
- """
- from django.db import models
- class Person(models.Model):
- name = models.CharField(max_length=200)
- class Location(models.Model):
- class Meta:
- abstract = True
- class Place(Location):
- name = models.CharField(max_length=200)