friendsmap/map/views.py

11 lines
278 B
Python
Raw Normal View History

2019-03-02 15:53:27 +01:00
from django.contrib.auth.mixins import LoginRequiredMixin
2019-03-02 12:47:44 +01:00
from django.views.generic import ListView
2019-03-02 15:53:27 +01:00
2019-03-02 12:47:44 +01:00
from map import models
2019-03-02 12:04:27 +01:00
2019-03-02 12:47:44 +01:00
2019-03-02 15:53:27 +01:00
class MapView(LoginRequiredMixin, ListView):
2019-03-02 12:47:44 +01:00
model = models.FriendLocation
context_object_name = 'locations'
template_name = 'map/map.html'