Преглед на файлове

Print note field of an object

Matthias Vogelgesang преди 9 години
родител
ревизия
5f9e7b8d5e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      dm/models.py

+ 1 - 1
dm/models.py

@@ -23,7 +23,7 @@ class Object(object):
         self.uploader = node.text if node is not None else None
 
     def __repr__(self):
-        return '<Object:id={} uuid={} label={}>'.format(self.id, self.uuid, self.label)
+        return '<Object:id={} uuid={} label={} note={}>'.format(self.id, self.uuid, self.label, self.note)
 
     def create_ingest(self, accesspoint):
         url = self.client.url('staging/ingests')