Skip to content

Commit 1e8bd45

Browse files
committed
Remove unneeded ENV variables and imports
1 parent b951629 commit 1e8bd45

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

config/settings/common.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -314,18 +314,10 @@
314314
# define CHANGESETS_FILTER as a path to a GeoJSON file.
315315
CHANGESETS_FILTER = env('DJANGO_CHANGESETS_FILTER', default=None)
316316

317-
# Define your prefered visualization tool link
318-
# Some options are 'https://nrenner.github.io/achavi/?changeset=',
319-
# https://overpass-api.de/achavi/?changeset=
320-
OSM_VIZ_TOOL_LINK = env('VIZ_TOOL_LINK', default='https://osmlab.github.io/changeset-map/#')
321-
322317
# Enable/disable the functionality to post comments to changesets when they
323318
# are reviewed
324319
ENABLE_POST_CHANGESET_COMMENTS = env('DJANGO_ENABLE_CHANGESET_COMMENTS', default=False)
325320

326-
# Authorization token to access the OSM-COMMENTS-API
327-
OSM_COMMENTS_API_KEY = env('DJANGO_OSM_COMMENTS_API_KEY', default='')
328-
329321
# Your common stuff: Below this line define 3rd party library settings
330322
REST_FRAMEWORK = {
331323
'DEFAULT_AUTHENTICATION_CLASSES': (

osmchadjango/changeset/tests/test_models.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ def test_changeset_creation(self):
9898

9999
self.assertFalse(self.changeset.checked)
100100
self.assertEqual(self.changeset.comments_count, 1)
101-
self.assertEqual(
102-
self.changeset.viz_tool_link(),
103-
'https://osmlab.github.io/changeset-map/#31982803'
104-
)
105101
self.assertEqual(
106102
self.changeset.osm_link(),
107103
'https://www.openstreetmap.org/changeset/31982803'

osmchadjango/changeset/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from rest_framework_gis.pagination import GeoJsonPagination
2525
from rest_framework_csv.renderers import CSVRenderer
2626
from rest_framework.exceptions import APIException
27-
import requests
2827

2928
from .models import Changeset, UserWhitelist, SuspicionReasons, Tag
3029
from .filters import ChangesetFilter

0 commit comments

Comments
 (0)