Esempio n. 1
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()
Esempio n. 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()
Esempio n. 3
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()
Esempio n. 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()