Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
1 answer
1k views

Django: Check at model level if anything in ManyToMany field before saving

There's a lot of questions worded similarly, but every single one I've seen is somebody trying to get some kind of data through a ManyToMany relationship before saving it. I'm not trying to use the ...
GlenVaughan's user avatar
0 votes
1 answer
83 views

Django admin.py ValueError when trying to save manytomany field

I am trying to create a model with a manytomany field in Django, and using the default admin.py interface I am getting a ValueError: needs to have a value for field "id" before this many-to-many ...
raafi15's user avatar
  • 21
1 vote
1 answer
262 views

Django register view of many to many connection table in Admin

I have a Django model, and two model classes with many to many relationships between them. class A(models.Model): a = models.ManyToManyField(B, related_name='a') class B(models.Model): id = ...
Marko Zadravec's user avatar
1 vote
1 answer
1k views

Django ManyToManyField relationship

I have the following Django model: class opetest(models.Model): name = models.CharField(max_length=200) people = models.ManyToManyField(User, blank=True) This m2m relationship is available on ...
baobee's user avatar
  • 451