fix bug
diff --git a/plstackapi/core/models/key.py b/plstackapi/core/models/key.py
index aa31599..661b901 100644
--- a/plstackapi/core/models/key.py
+++ b/plstackapi/core/models/key.py
@@ -12,7 +12,7 @@
blacklisted = models.BooleanField(default=False)
user = models.ForeignKey(PLUser, related_name='keys')
- def __unicode__(self): return u'%s' % (self.name)
+ def __unicode__(self): return u'%s' % (self.user.email[:self.user.email.find('@')])
def save(self, *args, **kwds):
self.os_manager.save_key(self)