cleanup
This commit is contained in:
parent
e8d9347443
commit
8d9b008e17
3 changed files with 20 additions and 4 deletions
|
@ -12,15 +12,13 @@ class DomainForm(ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Domain
|
model = Domain
|
||||||
fields = '__all__'
|
fields = '__all__'
|
||||||
# fields = ['domain']
|
|
||||||
|
|
||||||
|
|
||||||
class MailboxForm(ModelForm):
|
class MailboxForm(ModelForm):
|
||||||
plain_password = CharField(label='Password', required=False, widget=PasswordInput())
|
plain_password = CharField(label='Password', required=False, widget=PasswordInput())
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Mailbox
|
model = Mailbox
|
||||||
# fields = '__all__'
|
fields = ['domain', 'username', 'plain_password', 'quota', 'sendonly', 'enabled']
|
||||||
fields = ['domain', 'username', 'plain_password', 'sendonly', 'enabled']
|
|
||||||
|
|
||||||
def save(self, commit=True):
|
def save(self, commit=True):
|
||||||
mailbox = super(MailboxForm, self).save(commit=False)
|
mailbox = super(MailboxForm, self).save(commit=False)
|
||||||
|
|
17
backend/multimail/migrations/0002_auto_20201109_1505.py
Normal file
17
backend/multimail/migrations/0002_auto_20201109_1505.py
Normal 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')},
|
||||||
|
),
|
||||||
|
]
|
|
@ -14,7 +14,8 @@ function run_update(){
|
||||||
echo run autoupdate in $(pwd)
|
echo run autoupdate in $(pwd)
|
||||||
git pull
|
git pull
|
||||||
cd backend
|
cd backend
|
||||||
python3 manage.py migrate
|
python3 manage.py migrate
|
||||||
|
python3 manage.py collectstatic --noinput
|
||||||
}
|
}
|
||||||
|
|
||||||
run_update | prefix_date >> $DIR/update.log
|
run_update | prefix_date >> $DIR/update.log
|
||||||
|
|
Loading…
Reference in a new issue