2019-12-16 18:12:10 +01:00
|
|
|
from . import Base
|
2019-09-29 23:01:49 +02:00
|
|
|
from sqlalchemy import Column, String
|
|
|
|
|
|
|
|
|
2019-12-30 00:48:11 +01:00
|
|
|
class LangModel(Base):
|
2019-10-06 01:49:30 +02:00
|
|
|
__tablename__ = 'langs'
|
2019-09-29 23:01:49 +02:00
|
|
|
|
|
|
|
key = Column(String, primary_key=True)
|
|
|
|
value = Column(String)
|
|
|
|
|
|
|
|
def __repr__(self):
|
2019-12-30 00:48:11 +01:00
|
|
|
return "<LangModel(key='%s', locale='%s')>" % (self.key, self.value)
|