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

Add m2m history #1

Merged
merged 46 commits into from Jan 20, 2017
Merged

Add m2m history #1

merged 46 commits into from Jan 20, 2017

Conversation

jlachowski
Copy link
Owner

No description provided.

macro1 and others added 30 commits August 3, 2014 00:22
James Osgood and others added 16 commits October 9, 2014 13:12
Conflicts:
	simple_history/__init__.py
	simple_history/admin.py
	simple_history/models.py
	simple_history/tests/models.py
	simple_history/tests/tests/test_models.py
The old code blows up because source_field_name remains None.  To test this:

Create a model that inherits from User:
class Employee(User):
    pass

And an admin that also inherits UserAdmin:
class EmployeeAdmin(UserAdmin):
    pass
site.register(Employee, EmployeeAdmin)

Add it to your settings and then go add an employee through it.  Adding works fine.  The change view is displayed after adding.  Fill in the email or something and then save and it will blow up.  The reason is because instance is the Employee model which inherits.  It is an instance of User but it is not the same type.
Conflicts:
	simple_history/__init__.py
	simple_history/models.py
@jlachowski jlachowski merged commit e12f1ac into jlachowski:master Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants