Skip to content

Commit

Permalink
Split up name and domain in the admin list_display
Browse files Browse the repository at this point in the history
  • Loading branch information
ghickman committed Jun 1, 2011
1 parent 1ac9705 commit 4feb809
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion password/admin.py
Expand Up @@ -6,7 +6,7 @@

class PasswordAdmin(admin.ModelAdmin):
form = PasswordForm
list_display = ('__unicode__', 'is_public')
list_display = ('__unicode__', 'domain', 'is_public')
search_fields = ['name', 'username', 'domain']

def get_form(self, request, obj=None, **kwargs):
Expand Down
2 changes: 0 additions & 2 deletions password/models.py
Expand Up @@ -22,8 +22,6 @@ def save(self, *args, **kwargs):
super(Password, self).save(*args, **kwargs)

def __unicode__(self):
if self.domain:
return '%s (%s):' % (self.name, self.domain)
return self.name

@property
Expand Down

0 comments on commit 4feb809

Please sign in to comment.