Skip to content

Forward additional arguments to contribute_to_class() to Django#605

Merged
foarsitter merged 2 commits intojazzband:masterfrom
ProtixIT:contribute_to_class
Apr 3, 2024
Merged

Forward additional arguments to contribute_to_class() to Django#605
foarsitter merged 2 commits intojazzband:masterfrom
ProtixIT:contribute_to_class

Conversation

@mthuurne
Copy link
Contributor

The contribute_to_class() methods in StatusField, MonitorField and SplitField were not passing on additional arguments to Django, which means the private_only argument and any future arguments could not be used. This PR fixes that by accepting and forwarding any additional arguments.

In Django 3.2 there is an additional argument `private_only` and more
could be added in future versions.
@codecov
Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.57%. Comparing base (994d6c1) to head (e596cab).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #605   +/-   ##
=======================================
  Coverage   98.57%   98.57%           
=======================================
  Files           6        6           
  Lines         773      773           
=======================================
  Hits          762      762           
  Misses         11       11           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mthuurne mthuurne mentioned this pull request Mar 26, 2024
@foarsitter foarsitter merged commit d320924 into jazzband:master Apr 3, 2024
@mthuurne mthuurne deleted the contribute_to_class branch April 4, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants