

def build_rdn(self):
    '\n        Build the Relative Distinguished Name for this entry.\n        '
    bits = []
    for field in self._meta.fields:
        if (field.db_column and field.primary_key):
            bits.append(('%s=%s' % (field.db_column, getattr(self, field.name))))
    if (not len(bits)):
        raise Exception('Could not build Distinguished Name')
    return '+'.join(bits)

dataset/ETHPy150Open django-ldapdb/django-ldapdb/ldapdb/models/base.py Model.build_rdn/original