mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Making PEP happy
This commit is contained in:
parent
802ff35cf3
commit
6982b2f0c2
@ -198,7 +198,7 @@ class InvenTreeTree(models.Model):
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
""" String representation of a category is the full path to that category """
|
""" String representation of a category is the full path to that category """
|
||||||
|
|
||||||
return "{path} - {desc}".format(path=self.pathstring, desc=self.description)
|
return self.pathstring
|
||||||
|
|
||||||
|
|
||||||
@receiver(pre_delete, sender=InvenTreeTree, dispatch_uid='tree_pre_delete_log')
|
@receiver(pre_delete, sender=InvenTreeTree, dispatch_uid='tree_pre_delete_log')
|
||||||
|
@ -69,9 +69,9 @@ class AdjustStockForm(forms.ModelForm):
|
|||||||
confirm = forms.BooleanField(required=False, initial=False, label='Confirm Stock Movement', help_text='Confirm movement of stock items')
|
confirm = forms.BooleanField(required=False, initial=False, label='Confirm Stock Movement', help_text='Confirm movement of stock items')
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
self.fields['destination'].choices = self.get_location_choices()
|
self.fields['destination'].choices = self.get_location_choices()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = StockItem
|
model = StockItem
|
||||||
|
Loading…
Reference in New Issue
Block a user