forked from kompetenzinventar/ki-backend
add level texts, closes #45
This commit is contained in:
parent
9a1f3f842a
commit
ec855a542d
26
ki/models.py
26
ki/models.py
@ -146,6 +146,19 @@ class Skill(db.Model):
|
|||||||
|
|
||||||
|
|
||||||
class ProfileSkill(db.Model):
|
class ProfileSkill(db.Model):
|
||||||
|
level1_text = "bis 6 Monate"
|
||||||
|
level2_text = "bis 1 Jahr"
|
||||||
|
level3_text = "bis 3 Jahre"
|
||||||
|
level4_text = "bis 5 Jahre"
|
||||||
|
level5_text = "mehr als 5 Jahre"
|
||||||
|
level_texts = {
|
||||||
|
1: level1_text,
|
||||||
|
2: level2_text,
|
||||||
|
3: level3_text,
|
||||||
|
4: level4_text,
|
||||||
|
5: level5_text,
|
||||||
|
}
|
||||||
|
|
||||||
__tablename__ = "profile_skill"
|
__tablename__ = "profile_skill"
|
||||||
|
|
||||||
profile_id = Column(Integer, ForeignKey("profile.id"), primary_key=True)
|
profile_id = Column(Integer, ForeignKey("profile.id"), primary_key=True)
|
||||||
@ -185,6 +198,19 @@ class Language(db.Model):
|
|||||||
|
|
||||||
|
|
||||||
class ProfileLanguage(db.Model):
|
class ProfileLanguage(db.Model):
|
||||||
|
level1_text = "keine Angabe"
|
||||||
|
level2_text = "Grundkenntnisse"
|
||||||
|
level3_text = "Gut"
|
||||||
|
level4_text = "Fließend"
|
||||||
|
level5_text = "Muttersprache"
|
||||||
|
level_texts = {
|
||||||
|
1: level1_text,
|
||||||
|
2: level2_text,
|
||||||
|
3: level3_text,
|
||||||
|
4: level4_text,
|
||||||
|
5: level5_text,
|
||||||
|
}
|
||||||
|
|
||||||
__tablename__ = "profile_language"
|
__tablename__ = "profile_language"
|
||||||
|
|
||||||
profile_id = Column(Integer, ForeignKey("profile.id"), primary_key=True)
|
profile_id = Column(Integer, ForeignKey("profile.id"), primary_key=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user