Datepicker enhancements

This commit is contained in:
sayali
2020-08-25 18:40:36 -07:00
parent 3efe14c43f
commit 6aedd3b0d8
4 changed files with 22 additions and 18 deletions

View File

@ -317,8 +317,6 @@ class Certificate(db.Model):
if self.name.lower() in [ca.lower() for ca in public_CA]:
return current_app.config.get("PUBLIC_CA_MAX_VALIDITY_DAYS", 397)
return current_app.config.get("DEFAULT_MAX_VALIDITY_DAYS", 1095) # 3 years default
@property
def subject(self):
return self.parsed_cert.subject