Skip to content

Commit

Permalink
Add bind_key for Mascot
Browse files Browse the repository at this point in the history
  • Loading branch information
JanLuca committed Sep 21, 2018
1 parent 10b6838 commit c15d90c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/registration/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def __repr__(self):
return "<Uni: {}>".format(self.name)

class Mascot(db.Model):
__bind_key__ = 'anmeldung'
id = db.Column(db.Integer(), primary_key = True)
name = db.Column(db.Text(), unique = False)
uni_id = db.Column(db.Integer(), db.ForeignKey('uni.id'))
Expand Down

0 comments on commit c15d90c

Please sign in to comment.