Commits

Diego Búrigo Zacarão  committed 15753b7

Fixed an issue around locks

  • Participants
  • Parent commits 83b6824

Comments (0)

Files changed (1)

File transifex/addons/locks/handlers.py

     locks = Lock.objects.expiring()
     nt = 'project_resource_language_lock_expiring'
     for lock in locks:
-        context = { 'resource': lock.resource,
-                    'language': lock.language,
-                    'project' : lock.resource.project,
+        context = { 'resource': lock.rlstats.resource,
+                    'language': lock.rlstats.language,
+                    'project' : lock.rlstats.resource.project,
                     'user': lock.owner,
                     'expires': lock.expires,
                     'current_site' : current_site }