friendsmap/map/views.py

10 lines
235 B
Python
Raw Normal View History

2019-03-02 12:04:27 +01:00
from django.shortcuts import render
2019-03-02 12:47:44 +01:00
from django.views.generic import ListView
from map import models
2019-03-02 12:04:27 +01:00
2019-03-02 12:47:44 +01:00
class MapView(ListView):
model = models.FriendLocation
context_object_name = 'locations'
template_name = 'map/map.html'