diff --git a/seahub/organizations/models.py b/seahub/organizations/models.py index 0b3f3cf41e8..969343c8e96 100644 --- a/seahub/organizations/models.py +++ b/seahub/organizations/models.py @@ -112,8 +112,8 @@ def get_config_by_domain(self, domain): class OrgSAMLConfig(models.Model): org_id = models.IntegerField(unique=True) metadata_url = models.TextField() - domain = models.CharField(max_length=255, unique=True, null=True, default=None) - dns_txt = models.CharField(max_length=64, null=True, default=None) + domain = models.CharField(max_length=255, unique=True, null=True, blank=True) + dns_txt = models.CharField(max_length=64, null=True, blank=True) domain_verified = models.BooleanField(default=False, db_index=True) objects = OrgSAMLConfigManager()