Hi, maybe you forgot that you raised this topic before in https://groups.google.com/d/topic/django-developers/1qzFomJ7VzI/discussion. It's better to continue the existing thread so that past discussion is more easily viewable.
On Sunday, September 17, 2017 at 8:40:12 AM UTC-4, Jamesie Pic wrote: > > 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/31156c9e-08e2-41f1-8d50-1339665d1263%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
