Admin field defaults

2010-06-02 Thread Agore
I'm using 1.1 Admin to add rows to a database table that represent small transactions. is there a way of making a field dynamically default to 'last value entered' for that field in the previous table row? Being able to so this would save the user a lot of time in entering rows. -- You received t

Change Admin Field Defaults or Attributes outside of the Model Field Definitions (for inherited models and the like)

2009-08-04 Thread ZebraShaSha
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