@register.as_tag
def profile_form(user):
 if isinstance(user, User):
  return get_profile_form()(instance=user)
 return u''

@ register . as_tag def profile_form ( user ) : if isinstance ( user , User ) : return get_profile_form ( ) ( instance = user ) return u''
returns the profile form for a user: {% if request .