[damned-lies] Fix insertion ordering in ActionDbArchived
- From: Stéphane Raimbault <stephaner src gnome org>
- To: svn-commits-list gnome org
- Subject: [damned-lies] Fix insertion ordering in ActionDbArchived
- Date: Sat, 23 May 2009 11:34:37 -0400 (EDT)
commit 7287048f5c7d24bbb5f3e4a39a0aa82e58db4d7c
Author: Stéphane Raimbault <stephane raimbault gmail com>
Date: Sat May 23 17:28:41 2009 +0200
Fix insertion ordering in ActionDbArchived
- removed ordering in ActionDb
- explicit ordering in ActionAA
---
vertimus/models.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/vertimus/models.py b/vertimus/models.py
index 87e4807..54024bf 100644
--- a/vertimus/models.py
+++ b/vertimus/models.py
@@ -299,7 +299,6 @@ class ActionDb(models.Model):
class Meta:
db_table = 'action'
- ordering = ('-id',)
def get_action(self):
action = eval('Action' + self.name)()
@@ -700,7 +699,7 @@ class ActionAA(ActionAbstract):
def apply(self, state, person, comment=None, file=None):
self.save_action_db(state, person, comment, file)
- actions_db = ActionDb.objects.filter(state_db=state._state_db).all()
+ actions_db = ActionDb.objects.filter(state_db=state._state_db).order_by('id').all()
sequence = None
for action_db in actions_db:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]