This commit is contained in:
j3d1 2020-11-09 16:06:26 +01:00
parent e8d9347443
commit 8d9b008e17
3 changed files with 20 additions and 4 deletions

View file

@ -12,15 +12,13 @@ class DomainForm(ModelForm):
class Meta:
model = Domain
fields = '__all__'
# fields = ['domain']
class MailboxForm(ModelForm):
plain_password = CharField(label='Password', required=False, widget=PasswordInput())
class Meta:
model = Mailbox
# fields = '__all__'
fields = ['domain', 'username', 'plain_password', 'sendonly', 'enabled']
fields = ['domain', 'username', 'plain_password', 'quota', 'sendonly', 'enabled']
def save(self, commit=True):
mailbox = super(MailboxForm, self).save(commit=False)

View file

@ -0,0 +1,17 @@
# Generated by Django 3.1.3 on 2020-11-09 15:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('multimail', '0001_initial'),
]
operations = [
migrations.AlterUniqueTogether(
name='domainowner',
unique_together={('domain', 'admin', 'source')},
),
]

View file

@ -15,6 +15,7 @@ function run_update(){
git pull
cd backend
python3 manage.py migrate
python3 manage.py collectstatic --noinput
}
run_update | prefix_date >> $DIR/update.log