forked from elpaso/qgis-feed
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from Xpirix/feed_item_detail
Feed item detail page
- Loading branch information
Showing
11 changed files
with
579 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,6 +78,13 @@ class FeedEntryFilterForm(forms.Form): | |
) | ||
|
||
class MapWidget(forms.OSMWidget): | ||
|
||
def __init__(self, attrs=None): | ||
default_attrs = {'default_lat': 0, 'default_lon': 0, 'default_zoom': 2} | ||
if attrs: | ||
default_attrs.update(attrs) | ||
super().__init__(default_attrs) | ||
|
||
class Media: | ||
js = ['https://cdn.jsdelivr.net/npm/[email protected]/dist/ol.js'] | ||
|
||
|
@@ -165,3 +172,5 @@ def get_approvers_choices(self): | |
email__isnull=False | ||
).exclude(email='') if u.has_perm("qgisfeed.publish_qgisfeedentry") | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.