@register.filter<EOL>def app_model_id(obj):
ct = ContentType.objects.get_for_model(obj)<EOL>return '<STR_LIT>' % (ct.app_label, ct.model, obj.id)<EOL>
Returns a app-model-id string for a given object
:param obj:
:return: