I've opened a hundred docs/postings and can't find the correct syntax
for this simple task.

In my model I have a method and a property to return the result of the
method:

class MyModel(models.Model)
...
   def get_my_property(self):
      return '1234'
   my_property = property(get_my_property)

Now I want to display this property on the index page in a {{ }}
variable tag. What is the correct syntax, and where can I find this in
the docs?

Thanks very much for any help.

Lee

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to