Skip to content

MultiselectField is not working (with xlsx format) #2002

@Natgho

Description

@Natgho

Describe the bug
In our Django project, we have a model with Multiselectfield, when we import an export from this model, we see that these fields are not loaded.
https://pypi.org/project/django-multiselectfield/

To Reproduce

  1. Create a model with a MultiSelectField. (for example:
class SampleStudent:
    name= models.CharField(max_length=128, null=True, blank=True)
    countries = MultiSelectField(
        choices=COUNTRY_CODE_CHOICES,
        null=True,
        blank=True
    )
  1. Generate a few random rows.
  2. export as xlsx
  3. try to import related file

Versions (please complete the following information):

  • Django Import Export: 4.2.0
  • Python 3.11
  • Django 4.2.13

Expected behavior
What should happen is that MultiSelectField should be exported correctly and imported correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions