jedie / django-tools

miscellaneous django tools
http://pypi.python.org/pypi/django-tools/
Other
128 stars 31 forks source link

NEW: Mode Version Protect #33

Closed jedie closed 2 years ago

jedie commented 2 years ago

Protect a model against overwriting a newer entry with an older one, by adding a auto increment version number.

codecov[bot] commented 2 years ago

Codecov Report

Merging #33 (9b2004a) into master (7d22ced) will increase coverage by 0.90%. The diff coverage is 96.49%.

:exclamation: Current head 9b2004a differs from pull request most recent head 4d814dc. Consider uploading reports for the commit 4d814dc to get more accurate results Impacted file tree graph

@@            Coverage Diff             @@
##           master      #33      +/-   ##
==========================================
+ Coverage   80.85%   81.76%   +0.90%     
==========================================
  Files         145      147       +2     
  Lines        5882     6048     +166     
==========================================
+ Hits         4756     4945     +189     
+ Misses       1126     1103      -23     
Impacted Files Coverage Δ
django_tools_test_project/test_settings.py 100.00% <ø> (ø)
...jango_tools_test_project/tests/test_permissions.py 100.00% <ø> (ø)
...ols_test_project/tests/test_unittest_utils_user.py 100.00% <ø> (ø)
django_tools/model_version_protect/models.py 89.65% <89.65%> (ø)
django_tools/model_utils.py 46.80% <100.00%> (+20.33%) :arrow_up:
django_tools/model_version_protect/apps.py 100.00% <100.00%> (ø)
...o_tools/model_version_protect/tests/test_models.py 100.00% <100.00%> (ø)
...tools_test_project/django_tools_test_app/models.py 100.00% <100.00%> (ø)
...jango_tools_test_project/tests/test_model_utils.py 100.00% <100.00%> (ø)
...ols_test_app/management/commands/run_testserver.py 45.45% <0.00%> (-0.38%) :arrow_down:
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 51cc118...4d814dc. Read the comment docs.