Browse Source

change category assign

ilya_shyian 1 năm trước cách đây
mục cha
commit
77c3ae233c
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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