mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-10 23:14:13 +00:00
Add some helper magic for setting objects
- If the setting is defined as a "bool" then the returned value is automatically cast to a bool - Add some more unit testing
This commit is contained in:
@ -664,7 +664,7 @@ class Part(MPTTModel):
|
||||
)
|
||||
|
||||
component = models.BooleanField(
|
||||
default=True,
|
||||
default=part_settings.part_component_default,
|
||||
verbose_name=_('Component'),
|
||||
help_text=_('Can this part be used to build other parts?')
|
||||
)
|
||||
|
Reference in New Issue
Block a user