This is the database storage for SQLite databases
Return a File object.
Do nothing. We are calling a special write_binary signal in the Attachment save() method, which will call the _write_binary() method below, and write the binary file into the Attachment row.
Do the actual writing of binary data to the table. This method is called after the model has been saved, and can therefore be used to insert data based on information which was not accessible in the save method on the model.
This is the database storage for PostgreSQL databases
Read the file from the database, and return as a File instance.
Do nothing. We are calling a special write_binary signal in the Attachment save() method, which will call the _write_binary() method below, and write the binary file into the Attachment row.
Unlink the binary data before deleting
Do the actual writing of binary data to the table. This method is called after the model has been saved, and can therefore be used to insert data based on information which was not accessible in the save method on the model.