'Return a ctypeid-objpk string for value.'

def prepare_value(self, value):

    if (not value):
        return ''
    if isinstance(value, six.string_types):
        return value
    return ('%s-%s' % (ContentType.objects.get_for_model(value).pk, value.pk))
