Esempio n. 1
0
 def get_export_order(self):
     multilingual_fields = get_multilingual_fields(self._meta.model)
     export_order = [
         'image',
         *multilingual_fields['alt'],
     ]
     return super().get_export_order() + export_order
Esempio n. 2
0
 def get_export_order(self):
     multilingual_fields = get_multilingual_fields(self._meta.model)
     order = [
         'id',
         'is_active',
         # 'code',
         'price',
         'discount',
         'discount_type',
         "currency",
         # 'image',
         "images",
         'server_images',
         "category",
         "category_tree",
         "manufacturer",
         "brand",
         "in_stock",
         'amount',
         'unit',
         "markers",
         "labels",
         "similars",
         *multilingual_fields['title'],
         *multilingual_fields['description'],
         *multilingual_fields['alt'],
         *multilingual_fields['meta_title'],
         *multilingual_fields['meta_descr'],
         *multilingual_fields['meta_key'],
     ]
     return order
Esempio n. 3
0
 def get_export_order(self):
     multilingual_fields = get_multilingual_fields(self._meta.model)
     order = [
         'code',
         'page',
         'name',
     ]
     return order
Esempio n. 4
0
 def get_export_order(self):
     multilingual_fields = get_multilingual_fields(self._meta.model)
     export_order = [
         'code',
         *multilingual_fields['meta_title'],
         *multilingual_fields['meta_descr'],
         *multilingual_fields['meta_key'],
     ]
     return export_order
Esempio n. 5
0
 def get_export_order(self):
     multilingual_fields = get_multilingual_fields(self._meta.model)
     order = [
         "code",
         "sale_rate",
         "purchase_rate",
         "is_main",
         *multilingual_fields['symbol'],
     ]
     return order
Esempio n. 6
0
 def get_export_order(self):
     multilingual_fields = get_multilingual_fields(self._meta.model)
     export_order = [
         'code',
         # 'page',
         'slider',
         'image',
         *multilingual_fields['alt'],
         *multilingual_fields['title'],
     ]
     return export_order
Esempio n. 7
0
 def get_export_order(self):
     multilingual_fields = get_multilingual_fields(self._meta.model)
     order = [
         'is_active',
         'id',
         'parent',
         'code',
         "currency",
         'image',
         # 'title',
         # 'title_uk',
         # 'title_en',
         # 'title_ru',
         *multilingual_fields['title'],
         *multilingual_fields['description'],
         *multilingual_fields['alt'],
         *multilingual_fields['meta_title'],
         *multilingual_fields['meta_descr'],
         *multilingual_fields['meta_key'],
     ]
     return order 
 def get_export_order(self):
     multilingual_fields = get_multilingual_fields(self._meta.model)
     export_order = [
         *multilingual_fields['text']
     ]
     return super().get_export_order() + export_order