Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
[fix bug 950030] Add django-cache-machine to continuous reporting model.
Browse files Browse the repository at this point in the history
  • Loading branch information
akatsoulas committed Dec 13, 2013
1 parent d9095a4 commit 85e8777
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion remo/reports/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def __unicode__(self):
return self.name


class NGReport(models.Model):
class NGReport(caching.base.CachingMixin, models.Model):
""" Continuous Reporting Model.
In order to be able to distinguish the old
Expand Down Expand Up @@ -257,6 +257,8 @@ class NGReport(models.Model):
link_description = models.CharField(max_length=200, blank=True, default='')
activity_description = models.TextField(blank=True, default='')

objects = caching.base.CachingManager()

def _get_url_args(self):
args = [self.user.userprofile.display_name,
self.report_date.year,
Expand Down

0 comments on commit 85e8777

Please sign in to comment.