Skip to content

Commit 431c4cf

Browse files
committed
Improve admin interface slightly for contacts.
- Legacy-Id: 908
1 parent 6a39965 commit 431c4cf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ietf/ipr/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,12 @@ class IprContact(models.Model):
149149
fax = models.CharField(blank=True, maxlength=25)
150150
email = models.EmailField(maxlength=255, core=True)
151151
def __str__(self):
152-
return self.name
152+
return self.name or '<no name>'
153153
class Meta:
154154
db_table = 'ipr_contacts'
155155
class Admin:
156+
# would like contact_type
157+
list_display = ('__str__', 'ipr')
156158
pass
157159

158160

0 commit comments

Comments
 (0)