1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
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
requeston the form init, then the request.user will be automatically sent to the new history Entry - or implement a
get_history_usermethod on your ModelForm that will return aauth.Userobject
TODO
- Provide generic views to see history by object, user & both
- Improve doc
Querying models history easilyAdd more support and tests for filefield, booleanFR translation
ChangeLog
1.0.11 2019-06-27
- Catch Validation error and log error
1.0.9 2019-06-26
- Truncate object_repr charfield length to 200 max chars
1.0.7 2019-06-25
- Added localisation files to package
1.0.6 2019-06-19
- Remove tests from packaging
1.0.5 2019-06-19
- Added docstrings
- Added
models.HistoryBaseModel.log_custom_history Entry.content_objectis now mandatory
1.0.4 2019-06-17
- Added support for BooleanField and FileField
1.0.3 2019-06-17
- Added more coverage
- Added FR translation
- Added HistoryBaseModel
1.0 2019-06-14
- Initial Release
Metadata
Release files for django-modelformhistory 1.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_modelformhistory-1.0.11-py3-none-any.whl | Python 3 | none | any | Details |
| django_modelformhistory-1.0.11-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 23.2 kB
Release files / django_modelformhistory-1.0.11-py3-none-any.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | django_modelformhistory-1.0.11-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e8291cb569aa831d2b550baade4b121909db2eee6794d90ddabf421b0459105
|
|
BLAKE2b-256 checksum How to use checksums |
521d266b6442fd491d6b9b7e3ff63993ecb180ca12c93f0c90c4af39ef992a4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.4
|
Release files / django_modelformhistory-1.0.11-py2-none-any.whl
| Download URL | django_modelformhistory-1.0.11-py2-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
d20fdf346892d23987a815f08e1e8465ca8c4e14cfdcc32390b5e3964bd6aea5
|
|
BLAKE2b-256 checksum How to use checksums |
7e7707c2774bd5fce9a99da3046d27614a36f343264351b484bf89f6753456b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.10
|
Security for django-modelformhistory 1.0.11
Upload timing
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.