remove the default sorting from models

This commit is contained in:
Martin
2016-09-03 00:50:12 +02:00
parent bb2e2abad0
commit 1541119e3c
4 changed files with 4 additions and 6 deletions
-2
View File
@@ -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()