I'm building up a Django 1.11 application filling in as a UI for some Salesforce Objects utilizing django-salesforce for the correspondence with Salesforce.
I need to give clients the choice to download records from Salesforce Attachment objects identified with their Contact.
# Django Attachment demonstrate on my_app/models.py
class Attachment(models.Model):
parent = models.ForeignKey(Contact, models.DO_NOTHING,
sf_read_only=models.NOT_UPDATEABLE)
name = models.CharField(max_length=255, verbose_name='File Name')
content_type = models.CharField(max_length=120,