-
-
Notifications
You must be signed in to change notification settings - Fork 479
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
Can't add change_reason field to the admin form #853
Comments
That particular error is probably coming from the fact that |
I think that this feature would be awesome! Did you guys figured out a way to do this? Edit: I've just found a way. forms.py:
In your admin.py, override save_model method:
|
I don't know how to add the change reason field in the admin form.
I have followed the instructions adding
SIMPLE_HISTORY_HISTORY_CHANGE_REASON_USE_TEXT_FIELD=True
to the settings.py file.I also tried defining a model like this.
But I got an error saying that the field _change_reason couldn't be found.
Unknown field(s) (change_reason) specified for Identity
The text was updated successfully, but these errors were encountered: