diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-09-25 20:03:08 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-09-25 20:03:08 +0300 |
commit | 482289b36886b208f2c3ab8d2a3d539c4277b359 (patch) | |
tree | c9b2f01fb646b2db82a83ec4f69a7022173d320f /servo/models/queue.py | |
parent | bad16d795b03799cbdda4c2c11f52d0cab6a496b (diff) | |
download | Servo-482289b36886b208f2c3ab8d2a3d539c4277b359.tar.gz Servo-482289b36886b208f2c3ab8d2a3d539c4277b359.tar.bz2 Servo-482289b36886b208f2c3ab8d2a3d539c4277b359.zip |
Cleanup
Diffstat (limited to 'servo/models/queue.py')
-rw-r--r-- | servo/models/queue.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/servo/models/queue.py b/servo/models/queue.py index 422cb3e..05f5f2c 100644 --- a/servo/models/queue.py +++ b/servo/models/queue.py @@ -159,6 +159,9 @@ class Queue(models.Model): def get_admin_url(self): return reverse('admin-edit_queue', args=[self.pk]) + def get_absolute_url(self): + return reverse('orders-list_queue', args=[self.pk]) + def get_order_count(self, max_state=2): count = self.order_set.filter(state__lt=max_state).count() return count if count > 0 else '' |