1. Matthew Schinckel
  2. django-rest-api

Commits

Matthew Schinckel  committed 4ee6b00

Temporary hack to make last-modified work with rossweb.

  • Participants
  • Parent commits 90271c5
  • Branches default

Comments (0)

Files changed (1)

File rest_api/http.py

View file
  • Ignore whitespace
         
         newest = getattr(self.raw_data[0], mod_field)
         for obj in self.raw_data:
-            newest = max(newest, getattr(obj, mod_field))
+            newest = min(newest, getattr(obj, mod_field))
         self['Last-Modified'] = newest.strftime('%a, %d %b %Y %X GMT').strip()