Skip to content

Commit 78d2252

Browse files
committed
Added __repr__ to moderation
1 parent ccf785a commit 78d2252

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sharepoint/lists/moderation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
class ModerationStatus(object):
99
def __init__(self, value, label):
1010
self.value, self.label = value, label
11+
def __repr__(self):
12+
return self.label
1113
def __unicode__(self):
1214
return self.label
1315

@@ -84,4 +86,4 @@ def set_status(self, rows, status, comment=None):
8486

8587
if batch_result == 'Moderate':
8688
row._update(result.xpath('z:row', namespaces=namespaces)[0],
87-
clear=True)
89+
clear=True)

0 commit comments

Comments
 (0)