Add TODO reminder

This commit is contained in:
Roberto Rosario
2012-07-26 05:55:38 -04:00
parent 331fd3fe17
commit c5def4a5ec

View File

@@ -257,6 +257,9 @@ class Document(models.Model):
@property
def latest_version(self):
# TODO: an IndexError exception here is indicative of a corrupted
# database, find out how to handle (display empty doc or automatically
# delete with msg to user)
return self.documentversion_set.order_by('-timestamp')[0]
@property