coddingtonbear / django-measurement

Easily store, retrieve, and convert measurements of weight, volume, distance, area and more.
MIT License
145 stars 33 forks source link

Remove deprecation warning on Django 2.0 and newer #83

Closed Pacu2 closed 5 years ago

Pacu2 commented 5 years ago

Latest Pytest throws deprecation warnings into the console, this PR gets rid of one of them. context keyword argument of from_db_value was dropped in Django 2.0 and will be deprecated in Django 3.0

codecov-io commented 5 years ago

Codecov Report

Merging #83 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master     #83   +/-   ##
======================================
  Coverage    88.8%   88.8%           
======================================
  Files           4       4           
  Lines         134     134           
======================================
  Hits          119     119           
  Misses         15      15
Impacted Files Coverage Δ
django_measurement/models.py 94.91% <100%> (ø) :arrow_up:

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 597a6c9...7a1151f. Read the comment docs.

codingjoe commented 5 years ago

Released in 3.1.1