Sibyx / django_api_forms

Declarative Django request validation for RESTful APIs
https://sibyx.github.io/django_api_forms/
MIT License
22 stars 13 forks source link

Introduced extra optional arguments when creating `From` instance #61

Closed Serbel97 closed 1 year ago

Serbel97 commented 1 year ago

From now on you can also pass extra optional arguments into Form instance.

Example: 'form = Form.create_from_request(request, param=request.GET.get('param), param2=param2)'

codecov[bot] commented 1 year ago

Codecov Report

Merging #61 (aedefa1) into master (b0c4d5f) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #61   +/-   ##
=======================================
  Coverage   95.83%   95.84%           
=======================================
  Files           9        9           
  Lines         456      457    +1     
=======================================
+ Hits          437      438    +1     
  Misses         19       19           
Impacted Files Coverage Δ
django_api_forms/forms.py 92.56% <100.00%> (+0.05%) :arrow_up:
django_api_forms/version.py 100.00% <100.00%> (ø)