extra(): Re-implemented. Now is polymorphic (nearly) without restrictions.

Added test cases + docs.
This commit is contained in:
Bert Constantin
2010-10-23 10:58:44 +02:00
parent 6c8d28cbbc
commit 19adbdaf2c
6 changed files with 84 additions and 49 deletions
+1 -2
View File
@@ -30,11 +30,10 @@ class Command(NoArgsCommand):
print Project.objects.all()
print
"""
ModelA.objects.all().delete()
a=ModelA.objects.create(field1='A1')
b=ModelB.objects.create(field1='B1', field2='B2')
c=ModelC.objects.create(field1='C1', field2='C2', field3='C3')
print ModelA.objects.all()
print
"""