Skip to content

Commit

Permalink
Bug fix: QuerySetSequenceSelectMixin breaks when model uses UUID for PK
Browse files Browse the repository at this point in the history
  • Loading branch information
sayeghr authored and jpic committed May 22, 2020
1 parent 350427f commit b6a157e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dal_queryset_sequence/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def filter_choices_to_render(self, selected_choices):
ctype_models = {}

for choice in selected_choices:
ctype_pk, model_pk = choice.split('-')
ctype_pk, model_pk = choice.split('-', 1)
ctype_pk = int(ctype_pk)
ctype_models.setdefault(ctype_pk, [])
ctype_models[ctype_pk].append(model_pk)
Expand Down

0 comments on commit b6a157e

Please sign in to comment.