- renamed ShowField* to ShowFieldType, ShowFieldContent, ShowFieldTypeAndContent, in order to reflect better what they do.

- by default, django_polymorphic's pretty printing of querysets/objects (via ShowField*) is not used anymore
- ShowField mixins now also show the annotations (after the regular fields, prepended by "Ann:")
- cleaned up implementation.
This commit is contained in:
Bert Constantin
2010-10-16 14:40:27 +02:00
parent 50b54f5aca
commit 01bdb2f9b0
8 changed files with 203 additions and 96 deletions
+3 -1
View File
@@ -22,13 +22,15 @@ class Command(NoArgsCommand):
def handle_noargs(self, **options):
print 'polycmd - sqlite test db is stored in:',settings.DATABASE_NAME
print
"""
ModelA.objects.all().delete()
o=ModelA.objects.create(field1='A1')
o=ModelB.objects.create(field1='B1', field2='B2')
o=ModelC.objects.create(field1='C1', field2='C2', field3='C3')
print ModelA.objects.all()
print
"""
Project.objects.all().delete()
o=Project.objects.create(topic="John's gathering")