PageRenderTime 131ms CodeModel.GetById 70ms app.highlight 2ms RepoModel.GetById 58ms app.codeStats 1ms

/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"""
 2Tests for various ways of registering models with the admin site.
 3"""
 4
 5from django.db import models
 6
 7class Person(models.Model):
 8    name = models.CharField(max_length=200)
 9
10class Location(models.Model):
11    class Meta:
12        abstract = True
13
14class Place(Location):
15    name = models.CharField(max_length=200)