Replacing ManyToMany relationship in djangoDoes Django scale?In Django Admin, I want to change how foreign keys are displayed in a Many-Many Relationship admin widgetdjango - inlineformset_factory with more than one ForeignKeyDjango - queries across relationshipsHow to express a One-To-Many relationship in DjangoProducts catalogue: filter by parametersHow to save a django model with a manyToMany Through relationship, AND regular manyToMany relationshipsRadio buttons in django adminHow to expose some specific fields of model_b based on a field of model_a?Using Tag model to create ManytoMany relationship
I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?
Why escape if the_content isnt?
Purchasing a ticket for someone else in another country?
How do I extract a value from a time formatted value in excel?
Customer Requests (Sometimes) Drive Me Bonkers!
Is the destination of a commercial flight important for the pilot?
What is the best translation for "slot" in the context of multiplayer video games?
Arithmetic mean geometric mean inequality unclear
Class Action - which options I have?
How to check is there any negative term in a large list?
Two monoidal structures and copowering
How do scammers retract money, while you can’t?
Avoiding estate tax by giving multiple gifts
How does buying out courses with grant money work?
How easy is it to start Magic from scratch?
Why Were Madagascar and New Zealand Discovered So Late?
Tiptoe or tiphoof? Adjusting words to better fit fantasy races
Failed to fetch jessie backports repository
How can a function with a hole (removable discontinuity) equal a function with no hole?
Go Pregnant or Go Home
Is HostGator storing my password in plaintext?
Do sorcerers' Subtle Spells require a skill check to be unseen?
Can the discrete variable be a negative number?
How does Loki do this?
Replacing ManyToMany relationship in django
Does Django scale?In Django Admin, I want to change how foreign keys are displayed in a Many-Many Relationship admin widgetdjango - inlineformset_factory with more than one ForeignKeyDjango - queries across relationshipsHow to express a One-To-Many relationship in DjangoProducts catalogue: filter by parametersHow to save a django model with a manyToMany Through relationship, AND regular manyToMany relationshipsRadio buttons in django adminHow to expose some specific fields of model_b based on a field of model_a?Using Tag model to create ManytoMany relationship
How can I replace ManyToMany relationship in django with something else .
I heard about multiple select field or multiple choice field module that we can install it with pip.
Is it true?
If it is true how can I use it?
And if there are other ways can you tell me?
Class Post(models.Model):
Title=models.CharField(max_length=30)
Class Category(models.Model):
Name=models.CharField(max_length=30)
django
|
show 1 more comment
How can I replace ManyToMany relationship in django with something else .
I heard about multiple select field or multiple choice field module that we can install it with pip.
Is it true?
If it is true how can I use it?
And if there are other ways can you tell me?
Class Post(models.Model):
Title=models.CharField(max_length=30)
Class Category(models.Model):
Name=models.CharField(max_length=30)
django
can you explain bit more about what you want to do and what are you facing ?
– NVS
Mar 7 at 13:27
Look I want to join Post and Category that they have manytomany relationship but i dont want to use ManyToMany . i want to know is that other way to join them without it?
– HeiSenBerG
Mar 7 at 14:02
1
But why don't you want to useManyToManyField
? The UI widget (as you allude to in the post) isn't tightly coupled to the underlying field type.
– AKX
Mar 7 at 14:07
In general, when asking a question, try to sketch the problem and the end result you're trying to achieve, rather than ask for a specific technical solution. Because it's impossible for us to give an answer if we don't know the exact issue you're facing or what you're trying to achieve. You already decided on a route ("replace ManyToMany relationship") but it doesn't make sense if you want to join Post to Category to not have a many-to-many relationship. If you are specific about what you want to achieve maybe we can come up with a different route.
– dirkgroten
Mar 7 at 15:42
If you do not want to use many_to_many field then you have to query them separately and get data from both class and can save data in another class or can use data to get your results.
– NVS
Mar 8 at 5:49
|
show 1 more comment
How can I replace ManyToMany relationship in django with something else .
I heard about multiple select field or multiple choice field module that we can install it with pip.
Is it true?
If it is true how can I use it?
And if there are other ways can you tell me?
Class Post(models.Model):
Title=models.CharField(max_length=30)
Class Category(models.Model):
Name=models.CharField(max_length=30)
django
How can I replace ManyToMany relationship in django with something else .
I heard about multiple select field or multiple choice field module that we can install it with pip.
Is it true?
If it is true how can I use it?
And if there are other ways can you tell me?
Class Post(models.Model):
Title=models.CharField(max_length=30)
Class Category(models.Model):
Name=models.CharField(max_length=30)
django
django
edited Mar 7 at 14:05
HeiSenBerG
asked Mar 7 at 13:07
HeiSenBerG HeiSenBerG
11
11
can you explain bit more about what you want to do and what are you facing ?
– NVS
Mar 7 at 13:27
Look I want to join Post and Category that they have manytomany relationship but i dont want to use ManyToMany . i want to know is that other way to join them without it?
– HeiSenBerG
Mar 7 at 14:02
1
But why don't you want to useManyToManyField
? The UI widget (as you allude to in the post) isn't tightly coupled to the underlying field type.
– AKX
Mar 7 at 14:07
In general, when asking a question, try to sketch the problem and the end result you're trying to achieve, rather than ask for a specific technical solution. Because it's impossible for us to give an answer if we don't know the exact issue you're facing or what you're trying to achieve. You already decided on a route ("replace ManyToMany relationship") but it doesn't make sense if you want to join Post to Category to not have a many-to-many relationship. If you are specific about what you want to achieve maybe we can come up with a different route.
– dirkgroten
Mar 7 at 15:42
If you do not want to use many_to_many field then you have to query them separately and get data from both class and can save data in another class or can use data to get your results.
– NVS
Mar 8 at 5:49
|
show 1 more comment
can you explain bit more about what you want to do and what are you facing ?
– NVS
Mar 7 at 13:27
Look I want to join Post and Category that they have manytomany relationship but i dont want to use ManyToMany . i want to know is that other way to join them without it?
– HeiSenBerG
Mar 7 at 14:02
1
But why don't you want to useManyToManyField
? The UI widget (as you allude to in the post) isn't tightly coupled to the underlying field type.
– AKX
Mar 7 at 14:07
In general, when asking a question, try to sketch the problem and the end result you're trying to achieve, rather than ask for a specific technical solution. Because it's impossible for us to give an answer if we don't know the exact issue you're facing or what you're trying to achieve. You already decided on a route ("replace ManyToMany relationship") but it doesn't make sense if you want to join Post to Category to not have a many-to-many relationship. If you are specific about what you want to achieve maybe we can come up with a different route.
– dirkgroten
Mar 7 at 15:42
If you do not want to use many_to_many field then you have to query them separately and get data from both class and can save data in another class or can use data to get your results.
– NVS
Mar 8 at 5:49
can you explain bit more about what you want to do and what are you facing ?
– NVS
Mar 7 at 13:27
can you explain bit more about what you want to do and what are you facing ?
– NVS
Mar 7 at 13:27
Look I want to join Post and Category that they have manytomany relationship but i dont want to use ManyToMany . i want to know is that other way to join them without it?
– HeiSenBerG
Mar 7 at 14:02
Look I want to join Post and Category that they have manytomany relationship but i dont want to use ManyToMany . i want to know is that other way to join them without it?
– HeiSenBerG
Mar 7 at 14:02
1
1
But why don't you want to use
ManyToManyField
? The UI widget (as you allude to in the post) isn't tightly coupled to the underlying field type.– AKX
Mar 7 at 14:07
But why don't you want to use
ManyToManyField
? The UI widget (as you allude to in the post) isn't tightly coupled to the underlying field type.– AKX
Mar 7 at 14:07
In general, when asking a question, try to sketch the problem and the end result you're trying to achieve, rather than ask for a specific technical solution. Because it's impossible for us to give an answer if we don't know the exact issue you're facing or what you're trying to achieve. You already decided on a route ("replace ManyToMany relationship") but it doesn't make sense if you want to join Post to Category to not have a many-to-many relationship. If you are specific about what you want to achieve maybe we can come up with a different route.
– dirkgroten
Mar 7 at 15:42
In general, when asking a question, try to sketch the problem and the end result you're trying to achieve, rather than ask for a specific technical solution. Because it's impossible for us to give an answer if we don't know the exact issue you're facing or what you're trying to achieve. You already decided on a route ("replace ManyToMany relationship") but it doesn't make sense if you want to join Post to Category to not have a many-to-many relationship. If you are specific about what you want to achieve maybe we can come up with a different route.
– dirkgroten
Mar 7 at 15:42
If you do not want to use many_to_many field then you have to query them separately and get data from both class and can save data in another class or can use data to get your results.
– NVS
Mar 8 at 5:49
If you do not want to use many_to_many field then you have to query them separately and get data from both class and can save data in another class or can use data to get your results.
– NVS
Mar 8 at 5:49
|
show 1 more comment
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55044540%2freplacing-manytomany-relationship-in-django%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55044540%2freplacing-manytomany-relationship-in-django%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
can you explain bit more about what you want to do and what are you facing ?
– NVS
Mar 7 at 13:27
Look I want to join Post and Category that they have manytomany relationship but i dont want to use ManyToMany . i want to know is that other way to join them without it?
– HeiSenBerG
Mar 7 at 14:02
1
But why don't you want to use
ManyToManyField
? The UI widget (as you allude to in the post) isn't tightly coupled to the underlying field type.– AKX
Mar 7 at 14:07
In general, when asking a question, try to sketch the problem and the end result you're trying to achieve, rather than ask for a specific technical solution. Because it's impossible for us to give an answer if we don't know the exact issue you're facing or what you're trying to achieve. You already decided on a route ("replace ManyToMany relationship") but it doesn't make sense if you want to join Post to Category to not have a many-to-many relationship. If you are specific about what you want to achieve maybe we can come up with a different route.
– dirkgroten
Mar 7 at 15:42
If you do not want to use many_to_many field then you have to query them separately and get data from both class and can save data in another class or can use data to get your results.
– NVS
Mar 8 at 5:49