Posts by Iberê • 121 points
1 post
-
2
votes3
answers278
viewsA: How to prevent Django from finding Ids in the template?
You could use the def __str__(self): return self.id OR def __unicode__(self): return self.id And use the class itself as a string. It’s not the ideal way, but it would work. {{ form.instance }}…