Skip to content

Command init_sanitizer doesn't handle proxy models correctly #20

Open

Description

@JsseL

In a situation where we have models like this:

class Company(models.Model):
    field_x = models.CharField()

class SpecializedCompany(Company):
    class Meta:
        proxy = True

The init_sanitizer command produced:

app_company: {}

It should have created:

app_company:
  field_x: null

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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