Here are the examples of the python api sqlalchemy_utils.types.locale.LocaleType taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Example 1
@pytest.fixture
def User(Base):
class User(Base):
__tablename__ = 'user'
id = sa.Column(sa.Integer, primary_key=True)
locale = sa.Column(locale.LocaleType)
def __repr__(self):
return 'User(%r)' % self.id
return User