Not sure if anyone else has figured this out yet, but say you have an
Entry model with categories and then a bunch of models that subclass
it. When you define your Admin.ModelAdmin for the subclass, you can do
the following:

class SubclassModelForm(admin.ModelAdmin):
     opts = Entry._meta
     opts.get_field('title').default = "New default value"

This should work for anything that's available to your model fields:
help_text, editable, unique, anything. Really helpful!

(Also, thanks to James Bennet for the article here:
http://www.b-list.org/weblog/2007/nov/04/working-models/ for the help
in figuring this out!.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to