XLSImporter

class data_importer.importers.xls_importer.XLSImporter(source=None, *args, **kwargs)
class Meta

Importer configurations

XLSImporter.clean()

Custom clean method

XLSImporter.clean_field(field_name, value)

User default django field validators to clean content and run custom validates

XLSImporter.clean_row(row_values)

Custom clean method for full row data

XLSImporter.cleaned_data

Return tupla with data cleaned

XLSImporter.errors

Show errors catch by clean methods

XLSImporter.exclude_fields()

Exclude fields from Meta.exclude

XLSImporter.get_error_message(error, row=None, error_type=None)
XLSImporter.is_valid()

Clear content and return False if have errors

XLSImporter.load_descriptor()

Set fields from descriptor file

XLSImporter.meta

Is same to use .Meta

XLSImporter.post_clean()

Excuted after all clean method

XLSImporter.post_save_all_lines()

End exection

XLSImporter.pre_clean()

Executed before all clean methods Important: pre_clean dont have cleaned_data content

XLSImporter.pre_commit()

Executed before commit multiple register

XLSImporter.process_row(row, values)

Read clean functions from importer and return tupla with row number, field and value

XLSImporter.save(instance=None)

Save all contents DONT override this method

XLSImporter.set_reader()

[[1,2,3], [2,3,4]]

XLSImporter.source

Return source opened

XLSImporter.start_fields()

Initial function to find fields or headers values This values will be used to process clean and save method If this method not have fields and have Meta.model this method will use model fields to populate content without id

XLSImporter.to_unicode(bytestr)

Receive string bytestr and try to return a utf-8 string.