2019-09-29 23:01:49 +02:00
|
|
|
from sqlalchemy.ext.declarative import declarative_base
|
|
|
|
from sqlalchemy import Column, String
|
|
|
|
Base = declarative_base()
|
|
|
|
|
|
|
|
|
|
|
|
class Lang(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):
|
|
|
|
return "<Lang(key='%s', locale='%s')>" % (self.key, self.value)
|