Skip to content

Instantly share code, notes, and snippets.

@Lh4cKg
Created May 11, 2019 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lh4cKg/6072dd6a3d58d4ae4ee36efc8d8f56e4 to your computer and use it in GitHub Desktop.
Save Lh4cKg/6072dd6a3d58d4ae4ee36efc8d8f56e4 to your computer and use it in GitHub Desktop.
@register.simple_tag
def get_protected_attribute(obj, field):
return obj[field].value()
<input id="tileInput" type="text" value="{% get_protected_attribute form "_phone" %}" name="_phone"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment