Changes between Initial Version and Version 1 of Ticket #17924, comment 3


Ignore:
Timestamp:
Mar 17, 2012, 5:21:33 PM (13 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17924, comment 3

    initial v1  
    99    self.fields['fk_field'] = ModelChoiceFieldWithDescriptions()
    1010}}}
     11
     12Or directly call `formfield` which is a bit ugly
     13{{{#!python
     14self._meta.model._meta.get_field('fk_field').formfield(form_class=ModelChoiceFieldWithDescriptions)
     15}}}
Back to Top