Hello everybody !

Currently, it's possible to override a model field to override the
formfield method. This allows to generate a default form from a model with
the ModelForm. This is something that other maintainers of small django
apps providing with new form fields might also have seem users struggling
with on GitHub or StackOverflow.

In Ponzu framework, they register a function for a model type which returns
a form object. Example MarshalEditor function for their Song model in a
Ponzu Example:
https://github.com/ponzu-cms/examples/blob/master/news/examples/createable/content/song.go#L25

If Django had something similar then there would be no need for model
Field.formfield anymore. Also, users would have more freedom to design how
they want their default model forms to look like.

Thanks in advance for sharing some of your insight.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAC6Op1-N%2BOJf2nefTpJ0s1aPfNLVPeRr%2Bo1MmTMVN1NDEHyiAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to