2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

Add try/except around callable default

This commit is contained in:
Oliver Walters
2021-06-27 01:18:09 +10:00
parent 0cc999410b
commit 34a374ce9a
2 changed files with 8 additions and 4 deletions

View File

@ -603,8 +603,6 @@ class PartDetailTests(InvenTreeAPITestCase):
# And now check that the image has been set
p = Part.objects.get(pk=pk)
print("Image:", p.image.file)
class PartAPIAggregationTest(InvenTreeAPITestCase):
"""