ok i think this is very basic, but since I am new to Django开发者_Go百科 I don\'t know how to handle this.
We have a Django app which contains a list of newspaper articles. Each article has a m2m relationship with both a \"spokesperson\", as well as a \"firm\" (company mentioned in the article).
i have a model using m2m feature: class Classroom(models.Model): user = models.ForeignKey(User, related_name = \'classroom_creator\')
I\'m having trouble in saving a m2m data, containing a \'through\' class table. I want to save all selected members (selected in the form) in the through table.
if a have a declaration like def inside_classroom(request,classname): theclass = Classroom.objects.get(classname = classname)
I have a classroom application,and a follow relation. Users can follow each other and can create classrooms.When a user creates a classroom, he can invite only the people that are following him.
I\'m trying to get the related_name of a many-to-many-field. The m2m-field is located betweeen the models \"Group\" and \"Lection\" and is defined in the group-model as following:
Hi I have a model which has 2 many to many fields in it.one is a standard m2m field which does not use any through tables whereas the other is a bit more complecated and hasa through table.I am using
Background Terminals are a compination of hardware and software. Terminal\'s main responsibility is to
First I\'ll lay out what I\'m trying to achieve in case there\'s a different way to go about it! I want to be able to edit both sides of an M2M relationship (preferably on the admin page although if