Tuesday, March 20, 2018

Re: Given a model, how can I get a widget for each field?


Without a form you can't get the Widget which is used by default. Are the fields always the same? If yes you could create a ModelForm on the fly and render the fields manually.

Best regards,

Andreas

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ad20b07a-bf75-4032-9d52-ace38e7b8125%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment