'Returns a Redis-compatible key for the model given filters.'

def _make_key(self, model, filters):

    return ('b:k:%s:%s' % (model._meta, md5_text('&'.join((('%s=%s' % (k, self._coerce_val(v))) for (k, v) in sorted(six.iteritems(filters))))).hexdigest()))
