Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

History not logged when performing save on "proxy" model #191

Closed
ndufrane opened this issue Aug 26, 2015 · 1 comment
Closed

History not logged when performing save on "proxy" model #191

ndufrane opened this issue Aug 26, 2015 · 1 comment

Comments

@ndufrane
Copy link

Hi,

When using the admin app to make modification on a entity, the historical records are not created if the model is a proxy (https://docs.djangoproject.com/en/1.8/topics/db/models/#proxy-models) of a model with historical record activated.

With the example below, editing with the admin app the class Person works fine but not with MyPerson.

class Person(models.Model):
    first_name = models.CharField(max_length=30)
    last_name = models.CharField(max_length=30)
    history = HistoricalRecords()

class MyPerson(Person):
    class Meta:
        proxy = True

Do i miss something ?

@ndufrane
Copy link
Author

Ok there is a PR for this #154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant