django-sanitized-dump icon indicating copy to clipboard operation
django-sanitized-dump copied to clipboard

Command `init_sanitizer` doesn't handle proxy models correctly

Open JsseL opened this issue 6 years ago • 0 comments

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

JsseL avatar May 10 '19 11:05 JsseL