How to read \"_id\" field of an object in django templates


/ Published in: Django
Save to your folder(s)

It's imposible to read de "_id" field en django templates ( {{element._id}} === error) So, to read it, you must do a templatetag.

Now you hace the templatetag, you can use it like this: {{element|pk}}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.