class LayerMapping(model, data_source, mapping, layer=0, source_srs=None, encoding=None, transaction_mode='commit_on_success', transform=True, unique=True, using='default')
The following are the arguments and keywords that may be used during instantiation of LayerMapping objects.
Argument Description model The geographic model, not an instance. data_source The path to the OGR-supported data source file (e.g., a shapefile). Also accepts django.contrib.gis.gdal.DataSource instances. mapping A