Skip to content

Commit

Permalink
optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
likesclever committed Oct 21, 2023
1 parent 1855a41 commit ac1b0c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seahub/organizations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ac1b0c4

Please sign in to comment.