Browse Source

change category assign

ilya_shyian 1 year ago
parent
commit
77c3ae233c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      store_back/apps/categories/schema.py

+ 4 - 0
store_back/apps/categories/schema.py

@@ -136,6 +136,10 @@ class CategoryUpsert(graphene.Mutation):
         
         if "parent" in category:
             try:
+                print(category)
+                print(category.get("parent",None) == "null")
+                print(category.get("parent",None))
+
                 if category.get("parent",None) == "null":
                     new_category.parent = None