Skip to content

Commit

Permalink
fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
zhebrak committed Feb 15, 2015
1 parent ca1f971 commit 7f211ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
6 changes: 3 additions & 3 deletions example/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@


class AverageLikeValuePerHour(TemplateView):
template_name = 'example/stats2.html'
template_name = 'example/stats.html'


def average_like_value_per_hour(request):
def max_like_value_per_hour(request):
return render_to_response('example/stats.html')


statsy.site.register(average_like_value_per_hour)
statsy.site.register(max_like_value_per_hour)
statsy.site.register(AverageLikeValuePerHour.as_view(), category='Everyday')
5 changes: 0 additions & 5 deletions example/templates/example/stats2.html

This file was deleted.

2 changes: 1 addition & 1 deletion statsy/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Meta:
verbose_name = 'Statsy Object'
verbose_name_plural = 'Statsy Objects'
permissions = (
'stats_view'
('stats_view', 'Can view stats'),
)

def __unicode__(self):
Expand Down

0 comments on commit 7f211ef

Please sign in to comment.