XLSImporter

class data_importer.importers.xlsx_importer.XLSXImporter(source=None, *args, **kwargs)
class Meta

Importer configurations

XLSXImporter.clean()

Custom clean method

XLSXImporter.clean_field(field_name, value)

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

XLSXImporter.clean_row(row_values)

Custom clean method for full row data

XLSXImporter.cleaned_data

Return tupla with data cleaned

XLSXImporter.errors

Show errors catch by clean methods

XLSXImporter.exclude_fields()

Exclude fields from Meta.exclude

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

Clear content and return False if have errors

XLSXImporter.load_descriptor()

Set fields from descriptor file

XLSXImporter.meta

Is same to use .Meta

XLSXImporter.post_clean()

Excuted after all clean method

XLSXImporter.post_save_all_lines()

End exection

XLSXImporter.pre_clean()

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

XLSXImporter.pre_commit()

Executed before commit multiple register

XLSXImporter.process_row(row, values)

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

XLSXImporter.save(instance=None)

Save all contents DONT override this method

XLSXImporter.set_reader(use_iterators=True, data_only=True)

Read XLSX files

XLSXImporter.source

Return source opened

XLSXImporter.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

XLSXImporter.to_unicode(bytestr)

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