Skip to content
Phil Christensen edited this page Jul 27, 2016 · 12 revisions

Welcome to the django-salesforce wiki!

Wiki Contents

Important issues

  • Tuning REQUESTS_MAX_RETRIES - A variable used in edge-cases that is difficult to describe, see this issue for more info.
  • Excluding Empty Strings - An issue that results from the leaky abstraction between Salesforce and an RDBMS.
  • Converting Leads - Converting leads is not directly supported by the Salesforce REST interface, but an included helper function can use beatbox and the SOAP interface.

Short notes

Field Naming Conventions

In both Django and Salesforce double underscores are significant, so to make custom fields work in Django, be sure to specify the db_column argument in the model field definition, i.e. Last_Login = models.DateTimeField(db_column='Last_Login__c',max_length=40)

Faster tests

The tests can be slow with Django 1.7 and 1.8, if the default database has many migrations and some are applied and complex models for salesforce database are used, e.g. hundreds kB exported by inspectdb without pruning (--table-filter=...). This is fixed by Django 1.9 or many workarounds are described on the Internet for old Django.