Skip to content

Translation required for any language leads to default language constraint #58

@sliverc

Description

@sliverc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions