mirror of
https://github.com/Hopiu/django-select2.git
synced 2026-03-17 05:50:23 +00:00
Fix typo
This commit is contained in:
parent
4f96e21333
commit
6b1ca10b06
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue