add verbose name to MailAddress fields
This commit is contained in:
parent
f9ce3929f7
commit
af27400077
2 changed files with 28 additions and 2 deletions
|
@ -0,0 +1,26 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import models, migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('managemails', '0003_auto_20150124_2029'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='mailaddress',
|
||||||
|
name='domain',
|
||||||
|
field=models.ForeignKey(verbose_name='domain', to='domains.MailDomain'),
|
||||||
|
preserve_default=True,
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='mailaddress',
|
||||||
|
name='localpart',
|
||||||
|
field=models.CharField(max_length=128, verbose_name='local part'),
|
||||||
|
preserve_default=True,
|
||||||
|
),
|
||||||
|
]
|
|
@ -118,8 +118,8 @@ class MailAddress(ActivateAbleMixin, TimeStampedModel, models.Model):
|
||||||
This is the model class for a mail address.
|
This is the model class for a mail address.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
localpart = models.CharField(max_length=128)
|
localpart = models.CharField(_('local part'), max_length=128)
|
||||||
domain = models.ForeignKey(MailDomain)
|
domain = models.ForeignKey(MailDomain, verbose_name=_('domain'))
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ['domain', 'localpart']
|
ordering = ['domain', 'localpart']
|
||||||
|
|
Loading…
Reference in a new issue