[birds] Add birding location scrobbling

This commit is contained in:
2026-05-15 11:36:04 -04:00
parent 7b7c66de8f
commit 77f143299d
23 changed files with 708 additions and 6 deletions

View File

@ -0,0 +1,22 @@
from birds.models import Bird, BirdingLocation
from django.views import generic
from scrobbles.views import ScrobbleableDetailView, ScrobbleableListView
class BirdingLocationListView(ScrobbleableListView):
model = BirdingLocation
class BirdingLocationDetailView(ScrobbleableDetailView):
model = BirdingLocation
class BirdListView(generic.ListView):
model = Bird
paginate_by = 200
ordering = "common_name"
class BirdDetailView(generic.DetailView):
model = Bird
slug_field = "uuid"