def _get_lock_name(obj):
    """
    Gets a lock name for the object.

    :param django.db.models.Model obj: the object for which we want the lock

    :returns: a name for this object
    :rtype: :class:`str`
    """
    return '%s.%s__%d' % (obj.__module__, obj.__class__.__name__, obj.id)
