refactor Food tests to use factory_boy fixture factories
This commit is contained in:
@ -139,6 +139,7 @@ class TreeModel(MP_Node):
|
||||
return self.get_children().count()
|
||||
|
||||
# use self.objects.get_or_create() instead
|
||||
|
||||
@classmethod
|
||||
def add_root(self, **kwargs):
|
||||
with scopes_disabled():
|
||||
|
Reference in New Issue
Block a user