def save_model(self, request, obj, form, change):
     obj.qiniu_logo = upload(obj.logo.read()).get('key', '') if obj.logo else obj.qiniu_logo
     obj.save()
Exemple #2
0
 def save_model(self, request, obj, form, change):
     obj.qiniu_logo = upload(obj.logo.read()).get(
         'key', '') if obj.logo else obj.qiniu_logo
     obj.save()
 def save_model(self, request, obj, form, change):
     obj.qiniu_image = upload(obj.image.read()).get('key', '') if obj.image else obj.qiniu_image
     obj.save()
Exemple #4
0
 def save_model(self, request, obj, form, change):
     obj.qiniu_image = upload(obj.image.read()).get(
         'key', '') if obj.image else obj.qiniu_image
     obj.save()