Changes between Initial Version and Version 3 of Ticket #11795


Ignore:
Timestamp:
Aug 28, 2009, 7:03:19 AM (15 years ago)
Author:
Russell Keith-Magee
Comment:

I'm not aware of any plans to add this feature. I've modified this ticket to reflect the feature request.

You may get your wish through a back channel. The changes required by #10109 will probably make this feature possible with no extra effort, as that ticket will require introducing a dummy model representation of m2m fields, and this dummy model may be compatible use in inlines. I plan to commit a fix for #10109 in the near future as a precursor to multiple-database and non-SQL backend support. I'll try to keep this ticket in mind before I commit.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11795

    • Property Status newreopened
    • Property Summary inline for many-to-many colmuns not workingAllow use of inlines for many-to-many fields
  • Ticket #11795 – Description

    initial v3  
    1 When i try to create an inline field in admin.py for a manytomanyfield i always get the following error:
    2 <class 'politlog.app.models.Class'> has no ForeignKey to <class 'politlog.otherapp.models.OtherClass'>
     1When you try to create an inline field in admin.py for a manytomanyfield you always get the following error:
     2<class 'MyClass'> has no ForeignKey to <class 'OtherClass'>
    33
    4 It seems like django doesnt support inlines for ManyToManyFields whereas the documentation says otherwise:
    5 http://docs.djangoproject.com/en/dev/ref/contrib/admin/#working-with-many-to-many-intermediary-models
    6 
    7 I've described my problem also here:
    8 http://groups.google.de/group/django-users/browse_thread/thread/4586689cbbc07a28/2a1efa4882fcfc67?lnk=gst&q=many+to+many#2a1efa4882fcfc67
     4It would be nice to be able to use inlines for many to many relations.
Back to Top