Permalink
Browse files

Comment for last revision manager object

  • Loading branch information...
1 parent ab5827b commit d296c12a156101580f5cd5702d3ebd72dfd8522e @kachayev committed Aug 7, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 gearoscope/apps/monitor/managers.py
@@ -1,6 +1,12 @@
from django.db import models
class LastRevisionManager(models.Manager):
+ '''
+ Return QuerySet object with changed order
+ and command for returning only values, not objects.
+ Operating with revision values will save application
+ from bugs during trying to resave existen object
+ '''
def get_query_set(self):
return super(LastRevisionManager, self).get_query_set().order_by('-time').values()

0 comments on commit d296c12

Please sign in to comment.