Commits

Daniel Hjelm committed 1dc7417

fix to make 'get_object_visits_for' retrieve all visits for an app_model work

Comments (1)

Files changed (1)

 
         return self.filter(
             object_app=app_model._meta.app_label,
-            object_model=app_model.__class__.__name__
+            object_model=app_model.__name__
         )
  
     def add_uri_visit(self, request, uri, app_label):