summaryrefslogtreecommitdiff
path: root/app/daily
diff options
context:
space:
mode:
Diffstat (limited to 'app/daily')
-rw-r--r--app/daily/admin.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/daily/admin.py b/app/daily/admin.py
index b468301..578aaa3 100644
--- a/app/daily/admin.py
+++ b/app/daily/admin.py
@@ -39,6 +39,12 @@ class DailyAdmin(OSMGeoAdmin):
form.current_user = request.user
return form
+ def queryset(self, request):
+ qs = super(DailyAdmin, self).queryset(request)
+ if request.user.is_superuser:
+ return qs
+ return qs.filter(user=request.user)
+
class CheckInAdmin(OSMGeoAdmin):
list_display = ('date', 'location')