Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ classifiers = [
########## DEPENDENCIES ##########

dependencies = [
"Django==4.2.21",
"channels==4.2.2",
"channels-redis==4.2.1",
"Django==5.2.5",
"channels==4.3.1",
"channels-redis==4.3.0",
"asyncio==3.4.3",
"commonmark==0.9.1",
"conference-scheduler==3.0.1",
"django-allauth[mfa]==65.8.1",
"django-bootstrap5==25.1",
"django-bootstrap5==25.2",
"django-colorfield==0.14.0",
"django-cors-headers==4.7.0",
"django-filter==25.1",
"django-leaflet==0.31.0",
"django-leaflet==0.32.0",
"django-jsonview==2.0.0",
"django-oauth-toolkit==3.0.1",
"django-otp==1.6.0",
Expand Down
1 change: 1 addition & 0 deletions src/backoffice/templates/facility_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
{% block extra_head %}
{{ form.media }}
{% leaflet_css plugins="forms" %}
<link href="{% static 'css/leaflet.css' %}" rel="stylesheet">
{% leaflet_js plugins="forms" %}
{{ mapData|json_script:"mapData" }}
<script src="{% static 'js/maps/generic/mapVars.js' %}" type="text/javascript"></script>
Expand Down
1 change: 1 addition & 0 deletions src/backoffice/templates/maps_feature_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<link href="{% static 'vendor/leaflet-panel-layers/leaflet-panel-layers.min.css' %}" rel="stylesheet">
{{ form.media }}
{% leaflet_css plugins="forms" %}
<link href="{% static 'css/leaflet.css' %}" rel="stylesheet">
{% leaflet_js plugins="forms" %}
<script src="{% static 'vendor/leaflet/leaflet.awesome-markers.min.js' %}" type="text/javascript"></script>
<script src="{% static 'vendor/leaflet/leaflet-color-markers.js' %}" type="text/javascript"></script>
Expand Down
1 change: 0 additions & 1 deletion src/backoffice/views/facilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ def get_form(self, *args, **kwargs):
form.fields["location"].widget = LeafletWidget(
attrs={
"display_raw": "true",
"map_height": "500px",
"class": "form-control",
"geom_type": "Point",
},
Expand Down
2 changes: 0 additions & 2 deletions src/backoffice/views/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ def get_form(self, *args, **kwargs):
form.fields["geom"].widget = LeafletWidget(
attrs={
"display_raw": "true",
"map_height": "500px",
"geom_type": "GeometryCollection",
"class": "form-control",
},
Expand Down Expand Up @@ -342,7 +341,6 @@ def get_form(self, *args, **kwargs):
form.fields["geom"].widget = LeafletWidget(
attrs={
"display_raw": "true",
"map_height": "500px",
"geom_type": "GeometryCollection",
"class": "form-control",
},
Expand Down
1 change: 0 additions & 1 deletion src/bornhack/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@
"debug_toolbar.panels.templates.TemplatesPanel",
"debug_toolbar.panels.cache.CachePanel",
"debug_toolbar.panels.signals.SignalsPanel",
"debug_toolbar.panels.logging.LoggingPanel",
"debug_toolbar.panels.redirects.RedirectsPanel",
]

Expand Down
2 changes: 1 addition & 1 deletion src/economy/factories.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from __future__ import annotations

import random
from datetime import timezone

import factory
import faker
from django.contrib.auth.models import User
from django.utils import timezone
from utils.slugs import unique_slugify

from camps.models import Camp
Expand Down
1 change: 1 addition & 0 deletions src/maps/templates/user_location_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
{% block extra_head %}
{{ form.media }}
{% leaflet_css plugins="forms" %}
<link href="{% static 'css/leaflet.css' %}" rel="stylesheet">
{% leaflet_js plugins="forms" %}
{{ mapData|json_script:"mapData" }}
<script src="{% static 'js/maps/generic/mapVars.js' %}" type="text/javascript"></script>
Expand Down
2 changes: 0 additions & 2 deletions src/maps/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,6 @@ def get_form(self, *args, **kwargs) -> BaseForm:
form.fields["location"].widget = LeafletWidget(
attrs={
"display_raw": "true",
"map_height": "500px",
"geom_type": "Point",
"class": "form-control",
},
Expand Down Expand Up @@ -517,7 +516,6 @@ def get_form(self, *args, **kwargs) -> BaseForm:
form.fields["location"].widget = LeafletWidget(
attrs={
"display_raw": "true",
"map_height": "500px",
"geom_type": "Point",
"class": "form-control",
},
Expand Down
1 change: 1 addition & 0 deletions src/profiles/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class Meta:
"""Meta."""

model = User
skip_postgeneration_save = True

profile = factory.RelatedFactory(ProfileFactory, "user")

Expand Down
1 change: 1 addition & 0 deletions src/static_src/css/leaflet.css
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@
/* visual tweaks */

.leaflet-container {
height: 500px;
background: #ddd;
outline: 0;
}
Expand Down
1 change: 1 addition & 0 deletions src/villages/templates/village_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
{% block extra_head %}
{{ form.media }}
{% leaflet_css plugins="forms" %}
<link href="{% static 'css/leaflet.css' %}" rel="stylesheet">
{% leaflet_js plugins="forms" %}
{{ mapData|json_script:"mapData" }}
<script src="{% static 'js/maps/generic/mapVars.js' %}" type="text/javascript"></script>
Expand Down
2 changes: 0 additions & 2 deletions src/villages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ def get_form(self, *args, **kwargs) -> ModelForm[Village]:
form.fields["location"].widget = LeafletWidget(
attrs={
"display_raw": "true",
"map_height": "500px",
"class": "form-control",
"geom_type": "Point",
},
Expand Down Expand Up @@ -229,7 +228,6 @@ def get_form(self, *args, **kwargs) -> ModelForm[Village]:
form.fields["location"].widget = LeafletWidget(
attrs={
"display_raw": "true",
"map_height": "500px",
"class": "form-control",
"geom_type": "Point",
},
Expand Down
Loading