ilya_shyian пре 1 година
родитељ
комит
77c3ae233c
1 измењених фајлова са 4 додато и 0 уклоњено
  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