Changes between Version 47 and Version 48 of NewformsAdminBranch
- Timestamp:
- Jun 12, 2008, 3:19:01 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewformsAdminBranch
v47 v48 286 286 to modify your code/templates to work with newforms. 287 287 288 === Moved radio_admin from the model definition === 289 290 An example: 291 {{{ 292 #!python 293 294 # OLD: 295 class MyModel(models.Model): 296 field1 = models.ForeignKey(AnotherModel, radio_admin=models.VERTICAL) 297 298 class Admin: 299 pass 300 301 # NEW: 302 class MyModelAdmin(admin.ModelAdmin): 303 model = MyModel 304 radio_fields = {'field1': admin.VERTICAL} 305 }}}