kwargs['initial']['tags'] = [tag.id for tag in self.tag_model.objects.get_for_object(kwargs['instance'])]
super(TaggableModelForm, self).__init__(*args, **kwargs)
self.fields['tags'].choices = [(tag.id, tag.name) for tag in self.tag_model.objects.all()]
kwargs['initial']['tags'] = [tag.id for tag in self.tag_model.objects.get_for_object(kwargs['instance'])]
super(TaggableModelForm, self).__init__(*args, **kwargs)
self.fields['tags'].choices = [(tag.id, tag.name) for tag in self.tag_model.objects.all()]