1. David Guaraglia
  2. django-piston


Ionel Cristian Mărieș  committed c1a34fe

Changed stale check so it works with custom "Base" handler classes.

  • Participants
  • Parent commits 1b3ce1a
  • Branches default

Comments (0)

Files changed (1)

File piston/doc.py

View file
             if not met:
-            stale = inspect.getmodule(met) is handler
+            stale = inspect.getmodule(met.im_func) is not inspect.getmodule(self.handler)
             if not self.handler.is_anonymous:
                 if met and (not stale or include_default):