I defined two property fields in my model as below
but TableName.objects.all() or filter() is not retrieving them.
It is retrieving only the regular model fields.
Any clues on what I am doing wrong?
Ashish
def _get_new_summary(self):
"Returns the news summary."
return '%s - %s' %(task_summary,"Ashish")
new_summary = property(_get_new_summary)
def _get_severity_desc(self):
"Returns the Severity Description."
p =Severity.object.get(pk=self.severity)
return p.display_desc
severity_desc = property(_get_severity_desc)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---