Re: [Django] #7018: Make ModelForm multiple inheritance possible

28 views
Skip to first unread message

Django

unread,
Aug 30, 2011, 4:56:28 PM8/30/11
to django-...@googlegroups.com
#7018: Make ModelForm multiple inheritance possible
--------------------------------------------------+------------------------
Reporter: bear330 | Owner: nobody
Type: New feature | Status: new
Milestone: | Component: Forms
Version: SVN | Severity: Normal
Resolution: | Keywords:
Triage Stage: Design decision needed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
--------------------------------------------------+------------------------
Changes (by semente):

* cc: semente+django@… (added)
* ui_ux: => 0
* easy: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/7018#comment:15>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 11, 2011, 1:38:07 PM9/11/11
to django-...@googlegroups.com
#7018: Make ModelForm multiple inheritance possible
---------------------------------------+------------------------
Reporter: bear330 | Owner: nobody
Type: New feature | Status: new
Milestone: | Component: Forms
Version: SVN | Severity: Normal
Resolution: | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------+------------------------
Changes (by Alex):

* stage: Design decision needed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/7018#comment:16>

Django

unread,
Jan 18, 2013, 9:44:17 AM1/18/13
to django-...@googlegroups.com
#7018: Make ModelForm multiple inheritance possible
-----------------------------+------------------------------------

Reporter: bear330 | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------
Changes (by bouke):

* cc: bouke (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/7018#comment:17>

Django

unread,
Jul 31, 2013, 1:44:55 AM7/31/13
to django-...@googlegroups.com
#7018: Make ModelForm multiple inheritance possible
-----------------------------+------------------------------------
Reporter: bear330 | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------
Changes (by Lance0312):

* cc: cyen0312+django@… (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/7018#comment:18>

Django

unread,
Oct 17, 2013, 3:13:54 AM10/17/13
to django-...@googlegroups.com
#7018: Make ModelForm multiple inheritance possible
-----------------------------+------------------------------------
Reporter: bear330 | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------
Changes (by maa@…):

* cc: maa@… (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/7018#comment:19>

Django

unread,
Oct 17, 2013, 4:26:27 AM10/17/13
to django-...@googlegroups.com
#7018: Make ModelForm multiple inheritance possible
-----------------------------+------------------------------------
Reporter: bear330 | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------

Comment (by mjtamlyn):

Worth noting here that you can now combine Form and ModelForm together.
Combining the multiple models is a much more complex issue, and one I'm
personally not convinced should be included. This has implications on
validation and saving which could have a myriad of edge cases. Personally
I think some code which renders and validates two forms would be superior,
handled effectively as a nonhomogeneous Form set.

--
Ticket URL: <https://code.djangoproject.com/ticket/7018#comment:20>

Django

unread,
Oct 17, 2013, 4:32:06 AM10/17/13
to django-...@googlegroups.com
#7018: Make ModelForm multiple inheritance possible
-----------------------------+------------------------------------
Reporter: bear330 | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------

Comment (by anonymous):

Replying to [comment:20 mjtamlyn]:


> Worth noting here that you can now combine Form and ModelForm together.
Combining the multiple models is a much more complex issue, and one I'm
personally not convinced should be included. This has implications on
validation and saving which could have a myriad of edge cases. Personally
I think some code which renders and validates two forms would be superior,
handled effectively as a nonhomogeneous Form set.

This is closer to what I want to do (combine multiple model forms in one
form)
Where can I find info on this ?
thanks,

--
Ticket URL: <https://code.djangoproject.com/ticket/7018#comment:21>

Django

unread,
Oct 17, 2013, 5:15:51 AM10/17/13
to django-...@googlegroups.com
#7018: Make ModelForm multiple inheritance possible
-----------------------------+------------------------------------
Reporter: bear330 | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------

Comment (by mjtamlyn):

Sounds like you want something along the lines of
https://github.com/bmispelon/django-multiform


You'd nerd to write the connection logic yourself each time but I think
that's fine. Personally I'm not convinced this is code which needs to live
in core. Baptiste may have a different opinion.

--
Ticket URL: <https://code.djangoproject.com/ticket/7018#comment:22>

Django

unread,
Feb 6, 2016, 3:33:50 PM2/6/16
to django-...@googlegroups.com
#7018: Make ModelForm multiple inheritance possible
-----------------------------+------------------------------------
Reporter: bear330 | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------

Comment (by mitar):

Now with Django 1.9, the approaches mentioned in this ticket do not work
anymore, because get_declared_fields is not available anymore. What would
be a new approach?

--
Ticket URL: <https://code.djangoproject.com/ticket/7018#comment:23>

Django

unread,
Aug 11, 2021, 12:13:07 PM8/11/21
to django-...@googlegroups.com
#7018: Make ModelForm multiple inheritance possible
-----------------------------+------------------------------------
Reporter: bear330 | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: dev

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------
Changes (by Mike Fogel):

* cc: Mike Fogel (removed)


--
Ticket URL: <https://code.djangoproject.com/ticket/7018#comment:24>

Reply all
Reply to author
Forward
0 new messages