Skip to content

No multi-process support #28

Closed
Closed
@kevcampb

Description

@kevcampb

It seems that django-select2 is dependent on two global dictionaries for the autoselect fields. The following are in django_select2/util.py

# Generated Id to field instance mapping.
__id_store = {}
# Field's key to generated Id mapping.
__field_store = {}

Obviously this is going to fail when you run multi-process. Not sure what would be involved in getting multi-process support, and whether these details could be written back into SQL. That may be a feature request, although breaking multi-process support is certainly a huge issue.

At the very least this should be highlighted on the front page of the manual, so people are aware of the limitation before bringing this library in.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions