Changes between Version 47 and Version 48 of NewformsAdminBranch


Ignore:
Timestamp:
Jun 12, 2008, 3:19:01 PM (16 years ago)
Author:
Brian Rosner
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewformsAdminBranch

    v47 v48  
    286286to modify your code/templates to work with newforms.
    287287
     288=== Moved radio_admin from the model definition ===
     289
     290An example:
     291{{{
     292#!python
     293
     294# OLD:
     295class MyModel(models.Model):
     296    field1 = models.ForeignKey(AnotherModel, radio_admin=models.VERTICAL)
     297   
     298    class Admin:
     299        pass
     300
     301# NEW:
     302class MyModelAdmin(admin.ModelAdmin):
     303    model = MyModel
     304    radio_fields = {'field1': admin.VERTICAL}
     305}}}
Back to Top