2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-10 05:40:55 +00:00

Fixed tests

- Tree classes now need extra configuration in the fixture
- Check for null pk when cleaning a tree node
This commit is contained in:
Oliver Walters
2019-09-08 19:41:54 +10:00
parent a5189b8f3f
commit dac61eafa2
6 changed files with 71 additions and 8 deletions

View File

@@ -385,7 +385,7 @@ class Part(models.Model):
cats = self.category.get_ancestors(ascending=True, include_self=True)
for cat in cats:
if cat.defaul_location:
if cat.default_location:
return cat.default_location
# Default case - no default category found