Update the linking app to be compatible with the new document versioning fields

This commit is contained in:
Roberto Rosario
2011-12-04 00:00:07 -04:00
parent 43b17456d1
commit e6d3453800
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ class SmartLinkManager(models.Manager):
if total_query:
try:
document_qs = Document.objects.filter(total_query)
result[smart_link] = {'documents': document_qs.order_by('file_filename') or []}
result[smart_link] = {'documents': document_qs.order_by('date_added') or []}
except Exception, e:
result[smart_link] = {'documents': []}
errors.append(e)