Documents

Documents are for uploading both pdf viewable documents like assay certificates, and files that the user may need to download, like georeferenced DEM tif files, or Leapfrog viewer files. 

Documents are an independent model, and are linked by other models through a manytomany relationship. In this way, you only need one copy of a Document, but it can be accessible by an unlimited number of relevant model instances. For example, if you upload a lead file that contains the location notice documents for 100 mining claims, you would upload the Document one time in the Document model, and then link it to all of the relevant LandHolding instances through a bulk edit action. This is easily accomplished by applying a filter on the LandHolding model first, (e.g. by lead file number), and then selecting all with the topmost checkbox, and bulk editing. 

When bulk editing, if you add a Document to model instances, it will not remove any previously linked Documents, but will simply add the new Document to it. 

Documents can be linked to relevant model instances, like DrillCollars. If you add a new document during the creation of a new instance that supports Documents, like DrillCollar, the document will be automatically saved with the relevant category (i.e. Drill Hole Related). You can link Documents after the creation of an instance, either through individual instance editing or bulk editing. When doing so, the available queryset of Documents to choose from would be those with the relevant Document category (i.e. Drill Hole Related for DrillCollar instances). 

It is generally preferable to create the document only once, and then link it to other relevant models. For example, if you have a historic pdf of drill logs for multiple DrillCollar instances, you would upload the document once, either in the Document model or during the creation of the first DrillCollar instance, and then link the other relevant DrillCollar instances to it through a bulk edit action. 

The max document size is 2gb. 

Documents allows for documents and files with the following extensions:
'pdf', 'gpx', 'tif', 'tiff', 'qml', 'png', 'jpg', 'jpeg', 'gpkg', 'lfview', 'zip',

Available categories for Documents are: 
'Certificate',
'Cross Section',
'Drill Hole Related',
'GIS File',
'GPS Waypoints',
'GPS Tracks',
'Image',
'Land Holding',
'Leapfrog Viewer File',
'Long Section',
'Map',
'Memo',
'Other',
'Permit Document',
'Press Release',
'Quality Control',
'QGIS Style',
'Report',
'Technical Report',
'Zip File',