All Questions
4 questions
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 ...
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 ...
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 = ...
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 ...