def save(self, *args, **kwargs):
    super(TagForm, self).save(*args, **kwargs)
self.instance.project_set.clear()
for project in self.cleaned_data['projects']:
    self.instance.project_set.add(project)
Editing both sides of M2M in Admin Page