Browse Source

add media url to schema

ilya_shyian 2 years ago
parent
commit
fbdad6d350
1 changed files with 1 additions and 0 deletions
  1. 1 0
      store_back/apps/goods/schema.py

+ 1 - 0
store_back/apps/goods/schema.py

@@ -22,6 +22,7 @@ class ImageType(graphene.ObjectType):
         return self._id
 
     def resolve_url(self,info):
+        print(MEDIA_URL + self.url)
         return MEDIA_URL + self.url