What have you tried so far? What errors are you getting?
!class CategoryAdmin(ExportActionModelAdmin, PageAdmin):
!class ProductVariationAdmin(ImportMixin, admin.TabularInline):
!class ProductImageAdmin(ImportMixin, TabularDynamicInlineAdmin):
+class ProductResource(resources.ModelResource): + class Meta: + model = Product class ProductAdmin(ImportExportModelAdmin, DisplayableAdmin):
!class ProductAdmin(ImportExportModelAdmin, DisplayableAdmin):
+resource_class = ProductResource
Import export options are available in admin.
3. First do an export of csv file say current.csv
4. Delete Django pony sample product.
5. Do import of same current.csv
The Product gets added without any errors.
However the errors observed are
1. The variation fields does not gets filled up.
2. Multiple images are not loaded.
3. Unit price and sales price are not updated.
I am not sure how the product variation are to be handled.
sathish Anton. A
9. Do export of file using csv format as csv format is only supported now for importing.
10. save the downloaded file.
11. Delete the single django pony product for testing purpose.
12. Do import of same csv file.
13. Review wont produce any output as import function is overridden by product_db import.
14. confirm submit. and products will be added as done by product_db.
Thanks and Regards,
Sathish Anton. A