remove the default sorting from models
This commit is contained in:
@@ -11,8 +11,6 @@ class Category(db.Model):
|
||||
texts = db.relationship(
|
||||
'CategoryTexts', backref='category', lazy='dynamic')
|
||||
|
||||
__mapper_args__ = {'order_by' : name.asc()}
|
||||
|
||||
def path(self, locale='sv_SE'):
|
||||
row = CategoryTreeI18n.query.filter_by(
|
||||
category_id=self.id, locale=locale).first()
|
||||
|
||||
@@ -21,8 +21,6 @@ class Designer(db.Model):
|
||||
visible_search = db.Column(db.Integer(), nullable=False, default=1)
|
||||
pricepremium = db.Column(db.Numeric(), nullable=False, default=0)
|
||||
|
||||
__mapper_args__ = {'order_by' : name.asc()}
|
||||
|
||||
def __init__(self, name, username, territory, currency):
|
||||
self.name = name
|
||||
self.username = username
|
||||
|
||||
Reference in New Issue
Block a user