I have a standard many-to-one relationship set up. There are a bunch of fields, but for our purposes here, the relevant model is:
class Class(models.Model):
If the intention is to have students exist independently from a class, and then be able to add or remove them from a class, then this sets up a different relationship:
In reality this is describing a Many-To-Many relationship. Simply exchanging
class Student(models.Model):
class = models.ForeignKey(Class) ...
for
class Student(models.Model):
class = models.ManyToManyField(Class)...
will give the desired effect in Django admin immediately
Django Many-to-many