class AccountResource(resources.ModelResource):
class Meta:
model = Account
skip_unchanged = True
report_skipped = False
import_id_fields = ('ID',)
fields = ('ID', 'Rank_Test', 'UName', 'DecimalTest')
Hello folks the above code is what I am using as my model resource for django-import-export. What I am trying to accomplish is that on import the 'DecimalTest' field uses the django-import-export decimal widget; this is because excel spits out all ints as a float. I am just unsure of how to apply the widget to the DecimalTest field in this context. Any help would be greatly appreciated.