SectorLabs/django-localized-fields

Translation required for any language leads to default language constraint

sliverc opened this issue · 1 comments

Using following model:

class Test(models.Model):
  name = LocalizedField(blank=False, null=False, required=False)

leads to following migration:

migrations.CreateModel(
      name="Test",
      fields=[
          ("name", localized_fields.fields.field.LocalizedField(required=["en"])),
      ],
      options={"abstract": False},
  ),

This migration then will create a constraint that English is required and not just any language as stated in documentation.