def getType(self):
if (self._type == None):
self._type = ContentType.objects.get_for_model(self)
return self._type
for me personally this worked out well, but mostly because I have an
abstract model that all my other models extend, so I had to define that
method, once....
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.