Changes between Version 48 and Version 49 of NewformsAdminBranch
- Timestamp:
- Jun 23, 2008, 1:34:37 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewformsAdminBranch
v48 v49 304 304 radio_fields = {'field1': admin.VERTICAL} 305 305 }}} 306 307 === Moved filter_interface from the model definition === 308 An example: 309 {{{ 310 #!python 311 312 # OLD: 313 class MyModel(models.Model): 314 field1 = models.ManyToManyField(AnotherModel, filter_interface=models.VERTICAL) 315 field2 = models.ManyToManyField(YetAnotherModel, filter_interface=models.HORIZONTAL) 316 317 # NEW: 318 class MyModelAdmin(admin.ModelAdmin): 319 filter_vertical = ('field1',) 320 filter_horizontal = ('field2',) 321 }}}