From 6b1ca10b06164bbf5fdd0e3ec671f75f44e95753 Mon Sep 17 00:00:00 2001 From: Johannes Hoppe Date: Mon, 8 Jul 2019 17:00:33 +0200 Subject: [PATCH] Fix typo --- django_select2/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_select2/forms.py b/django_select2/forms.py index ec437a9..834a4b5 100644 --- a/django_select2/forms.py +++ b/django_select2/forms.py @@ -555,7 +555,7 @@ class ModelSelect2TagWidget(ModelSelect2Mixin, HeavySelect2TagWidget): '''Create objects for given non-pimary-key values. Return list of all primary keys.''' values = set(super().value_from_datadict(data, files, name)) # This may only work for MyModel, if MyModel has title field. - # You need to implement this method yourlself, to ensure proper object creation. + # You need to implement this method yourself, to ensure proper object creation. pks = self.queryset.filter(**{'pk__in': list(values)}).values_list('pk', flat=True) pks = set(map(str, pks)) cleaned_values = list(values)