Wiadomość napisana w dniu 2008-11-10, o godz. 21:03, przez ilmarik: > Is there any simple way to change <input ..> to <select ... > in > autogenerated django admin ? > > I have some fields that takes simple values to varchar and integer > fields and these values are predefined alternatives. > > for example: field for Ms/Mrs/Mr... > > simple link to explanation would do...
You can supply choices argument in model's field constructor. Or replace the form's field with the one that has choices in modelform for this model. -- We read Knuth so you don't have to. - Tim Peters Jarek Zgoda, R&D, Redefine [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---