Hello, I have a ModelChoiceField getting filled up by a database queryset. Works fine this far. In my template the entries of the select-field look all like this: <option value="3">Afghanistan</option>
I know that that the value between the two option tags (Afghanistan) can be set by changing the model's __str()__-method. But is there also a way to change the way the value-attribut (3) is set? By now it is the unique id-field from the database, I guess. I would like to change it, to get more SE-friendly urls (when submitting the form with GET). Or am I wrong about this? Kind regards, Martin --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---