Skip to content

Commit 71a0b22

Browse files
committed
The "email" field is not used, so hide it from the admin interface.
- Legacy-Id: 906
1 parent 133d407 commit 71a0b22

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/announcements/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
# as char(N) instead of TIME. Until it's important, let's
99
# keep them as char here too.
1010

11+
# email is not used; the announced_from text is Foo Bar <foo@bar.com>
1112
class AnnouncedFrom(models.Model):
1213
announced_from_id = models.AutoField(primary_key=True)
1314
announced_from = models.CharField(blank=True, maxlength=255, db_column='announced_from_value')
14-
email = models.CharField(blank=True, maxlength=255, db_column='announced_from_email')
15+
email = models.CharField(blank=True, maxlength=255, db_column='announced_from_email', editable=False)
1516
permission = models.ManyToManyField(Permission, limit_choices_to={'codename__endswith':'announcedfromperm'}, filter_interface=models.VERTICAL, verbose_name='Permission Required', blank=True)
1617
def __str__(self):
1718
return self.announced_from

0 commit comments

Comments
 (0)