No project description provided
Project description
Django ModelForm History
django-modelformhistory will save your modelform updates and store the human-readable values. The main goal is only to show the users what has been updated on a modelForms. If you search for a more lowlevel history app, consider using django-reversion or django-simple-history
Warning
This package is under developpement. It has poor features and may be unstable. Don't use it in production yet.
Requirements
- Django 1.10.* / Django 1.11.*
- Tested under python 2.7 and 3.6
Install
pip install django-modelformhistory
Then, add modelformhistory
to INSTALLED_APPS
Usage
Inherit your ModelForm with HistoryModelFormMixin
from modelformhistory.forms import HistoryModelFormMixin
class MyModelForm(HistoryModelFormMixin, forms.ModelForm):
pass
You can get the user that has made the change by :
- Either pass the
request
on the form init - or implement a
get_history_user
method on your ModelForm that will return aauth.User
object
TODO
Querying models history easily- Provide generic views to see history by object, user & both
- Add more support and tests for filefield, boolean
FR translation
ChangeLog
1.0.3 2019-06-14
- Added more coverage
- Added FR translation
- Added HistoryBaseModel
1.0 2019-06-14
- Initial Release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-modelformhistory-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf2cf6ea5fa161e412428f10e4f275b3207b7f57bbd7d245bb803857bb2e84ed |
|
MD5 | 955f29acfd193afd6396fa77150c162c |
|
BLAKE2b-256 | bb2bbe03fda5b3b45eecbf17c85d1e934686f6983f04f63255ac911b581ea7ee |
Close
Hashes for django_modelformhistory-1.0.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a2138d4ad3fbde57e06968712e7e31b3c3c42d944381019e5d150709ceb9216 |
|
MD5 | 1123d837fcae3e19a65b9d20d84b2a60 |
|
BLAKE2b-256 | f99f527b1c34ea3d1d4419d899d8327a7036636d383c456e2076f003214e0dbe |