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:
Chris Hill-Scott
2017-09-20 11:03:48 +01:00
parent 4d1c0a36c6
commit bde6a9e131
5 changed files with 30 additions and 13 deletions

View File

@@ -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):