refactor MailProvider model and enhance email validation in admin form

This commit is contained in:
2025-05-27 23:49:58 +02:00
parent b65c15c89a
commit 7b728e3dfe
3 changed files with 41 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
from django.db import models
class MailProvider(models.Model):
host = models.URLField()
host = models.CharField(max_length=255)
port = models.IntegerField(default=587)
host_user = models.CharField(max_length=255)
host_password = models.CharField(max_length=255)