django-sortedm2m icon indicating copy to clipboard operation
django-sortedm2m copied to clipboard

Model Object fails to be added

Open mekicha opened this issue 5 years ago • 0 comments

In the _add_items method in fields: https://github.com/jazzband/django-sortedm2m/blob/master/sortedm2m/fields.py#L83 There is a check if the object being added is an instance of django.db.models.Model class.

I find that adding a single instance fails that test as the object is indeed an instance of the Model class but passses when I add a queryset.

I am not totally sure what's the expected behaviour here.

Happy to provide more details

mekicha avatar Jan 23 '20 10:01 mekicha