Skip to content
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
3 changes: 1 addition & 2 deletions src/economy/factories.py
Original file line number Diff line number Diff line change
@@ -1,12 +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 camps.models import Camp
from teams.models import Team
from utils.slugs import unique_slugify
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