entities/__init__.py
changeset 253 57e88c0ba286
parent 142 0425ee84cfa6
child 479 ac5c9442b1fd
--- a/entities/__init__.py	Mon Dec 22 14:30:44 2008 +0100
+++ b/entities/__init__.py	Mon Dec 22 14:31:07 2008 +0100
@@ -131,7 +131,7 @@
     
     def dc_description(self, format='text/plain'):
         """return a suitable description for this entity"""
-        if hasattr(self, 'description'):
+        if self.e_schema.has_subject_relation('description'):
             return self.printable_value('description', format=format)
         return u''