This commit is contained in:
Dominic DiTaranto 2026-06-21 14:11:51 -04:00
parent 7fcca38986
commit 92db8d61ed
3 changed files with 6 additions and 4 deletions

View file

@ -22,6 +22,7 @@ ALLOWED_HOSTS = []
INSTALLED_APPS = [ INSTALLED_APPS = [
"corsheaders", "corsheaders",
"django.contrib.gis", "django.contrib.gis",
"leaflet",
"django.contrib.admin", "django.contrib.admin",
"django.contrib.auth", "django.contrib.auth",
"django.contrib.contenttypes", "django.contrib.contenttypes",

View file

@ -2,6 +2,8 @@ asgiref==3.11.1
certifi==2026.5.20 certifi==2026.5.20
charset-normalizer==3.4.7 charset-normalizer==3.4.7
Django==6.0.6 Django==6.0.6
django-cors-headers==4.0.0
django-leaflet==0.33.0
django-rest-framework==0.1.0 django-rest-framework==0.1.0
djangorestframework==3.17.1 djangorestframework==3.17.1
idna==3.18 idna==3.18
@ -10,5 +12,3 @@ psycopg-binary==3.3.4
requests==2.34.2 requests==2.34.2
sqlparse==0.5.5 sqlparse==0.5.5
urllib3==2.7.0 urllib3==2.7.0
django-cors-headers==4.0.0

View file

@ -1,4 +1,5 @@
from django.contrib.gis import admin from django.contrib import admin
from leaflet.admin import LeafletGeoAdmin
from django.contrib.gis.db import models from django.contrib.gis.db import models
from web.models.base import BaseModel from web.models.base import BaseModel
@ -29,7 +30,7 @@ class Event(BaseModel):
db_table = 'events' db_table = 'events'
class EventAdmin(admin.GISModelAdmin): class EventAdmin(LeafletGeoAdmin):
search_fields = ( search_fields = (
'name', 'name',
'description', 'description',