Commit Graph

9 Commits (01bdb2f9b001f0900b564adaf2cfe65cfd971fa3)

Author SHA1 Message Date
Bert Constantin 01bdb2f9b0 - 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.
2010-10-19 21:28:33 +02:00
Bert Constantin 7e584632b8 fix unnecessary field-name/model-name conflicts (i.e. field_name == model_name.lower() )
=> __init__ + __getattribute__ now handle only the Django inheritance
references that are needed ('modela_ptr', 'modelc' etc.), avoiding
unnecessary conflicts with field names.
2010-02-18 20:05:17 +01:00
Bert Constantin cf42a8111b setup.py added. Thanks to Andrew Ingram. 2010-02-04 15:28:56 +01:00
Bert Constantin c10577c32f queryset aggregate() and extra() methods implemented, testcases, docs 2010-02-04 15:28:55 +01:00
Bert Constantin e51425f5df updated docs 2010-01-28 20:39:07 +01:00
Bert Constantin c2b420aea0 IMPORTANT: DB schema changed: Django's ContentType is now used
instead of app-label and model-name (suggested by Ilya Semenov in issue 3).
This is a cleaner and more efficient solution, and applabel/modelname
are not stored redundantly in additional tables any more (the polymorphic models).
This should be the final DB schema now (sorry for any inconvenience).
Also some minor documentation updates.
2010-01-26 22:31:56 +01:00
Bert Constantin 09fef376ac manage.py: prepend ./libraries-local to sys.path, allowing us to test any version of Django (after being copied there) 2010-01-24 16:24:10 +01:00
Bert Constantin f77ebe8149 Model___field notation now automatically chooses correct application + separated translation into own function 2010-01-23 06:42:01 +01:00
Bert Constantin 576a16f2ab initial commit 2010-01-15 21:13:36 +01:00