django-pint icon indicating copy to clipboard operation
django-pint copied to clipboard

QuanityWidget and QuantityField don't share signature

Open mmarras opened this issue 6 months ago • 2 comments

Pseudocode

class QuantityWidget(QuantityFormField)
    def __init__(base_units=, allowed_types=)

whereas:

class QuantityField
    def __init__(base_units=, unit_choices=)

semantically allowed_types and unit_choices are the same thing but are referenced with different names, if I am not mistaken. A streamlined signature would be easier to work with.

mmarras avatar Aug 23 '24 15:08 mmarras