mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-17 04:58:50 -04:00
Make organisation logo nullable
Now we have the org banner branding, not all organisations need a logo. So it shouldn’t be an error to not provide one.
This commit is contained in:
@@ -135,7 +135,7 @@ class Organisation(db.Model):
|
||||
__tablename__ = 'organisation'
|
||||
id = db.Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)
|
||||
colour = db.Column(db.String(7), nullable=True)
|
||||
logo = db.Column(db.String(255), nullable=False)
|
||||
logo = db.Column(db.String(255), nullable=True)
|
||||
name = db.Column(db.String(255), nullable=True)
|
||||
|
||||
def serialize(self):
|
||||
|
||||
@@ -7,7 +7,7 @@ post_create_organisation_schema = {
|
||||
"name": {"type": ["string", "null"]},
|
||||
"logo": {"type": ["string", "null"]}
|
||||
},
|
||||
"required": ["logo"]
|
||||
"required": []
|
||||
}
|
||||
|
||||
post_update_organisation_schema = {
|
||||
|
||||
Reference in New Issue
Block a user