Fix XModule __unicode__ method

- was referencing no-longer-present attributes
This commit is contained in:
Victor Shnayder
2012-09-05 12:53:14 -04:00
parent d0fcbdda8c
commit 6cfe52680b

View File

@@ -212,7 +212,7 @@ class XModule(HTMLSnippet):
return self.metadata.get('display_name',
self.url_name.replace('_', ' '))
def __unicode__(self):
return '<x_module(name=%s, category=%s, id=%s)>' % (self.name, self.category, self.id)
return '<x_module(id={0})>'.format(self.id)
def get_children(self):
'''