code: def get_attname_column(self):
          
          # See "A guide to Field parameters": django/db/models/fields/__init__.py
          #   * attname:   The attribute to use on the model object. This is the same as
          #                "name", except in the case of ForeignKeys, where "_id" is
          #                appended.
          #   * column:    The database column for this field. This is the same as
          #                "attname", except if db_column is specified.
          attname = self.get_attname()
          if self.db_column is not None:
              # explicit name
              column = self.db_column
          else:
              if not self.name.islower():
                  # a Salesforce style name e.g. 'LastName' or 'MyCustomField'
                  column = self.name
              else:
                  # a Django style name like 'last_name' or 'my_custom_field'
                  column = self.name.title().replace('_', '')
              # Fix custom fields
              if self.sf_custom:
                  column = self.sf_namespace + column + '__c'
          return attname, column
docs: Get the database column name automatically in most cases.