Skip to content

Commit 66750b1

Browse files
committed
Merge branch 'release/7.0.0'
2 parents ba1ed46 + 33176f1 commit 66750b1

File tree

8 files changed

+61
-17
lines changed

8 files changed

+61
-17
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,22 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.7", "3.8", "3.9", "3.10"]
10+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1111
wagtail-version:
1212
- 2.15.5
13-
- 2.16.2
14-
- 3.0.1
13+
- 2.16.3
14+
- 3.0.3
1515
- 4.0.4
16+
- 4.1.1
17+
exclude:
18+
- python-version: "3.11"
19+
wagtail-version: "2.15.5"
20+
- python-version: "3.11"
21+
wagtail-version: "2.16.3"
22+
- python-version: "3.11"
23+
wagtail-version: "3.0.3"
24+
- python-version: "3.11"
25+
wagtail-version: "4.0.4"
1626
services:
1727
postgres:
1828
image: postgis/postgis:12-2.5

CHANGELOG.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,34 @@
11
# Changelog
22

3-
## Unreleased
3+
## [Unreleased]
4+
### Added
5+
### Changed
6+
### Fixed
7+
### Removed
8+
9+
## [7.0.0] - 2022.12.03
410
### Added
511
- Add Wagtail 4 compability (@katdom13)
12+
- Add contribution documentation (@marteinn)
613

714
### Changed
8-
- Updated StreamFieldPanel to just FieldPanel in tests (@katdom13)
9-
- Updated StreamFields to have additional argument use_json_field
10-
- Renamed wagtailgeowidget.edit_handlers to wagtailgeowidget.panels
11-
- Updated imports in docs (@katdom13)
15+
- Update StreamFieldPanel to just FieldPanel in tests (@katdom13)
16+
- Update StreamFields to have additional argument use_json_field in test (@katdom13)
17+
- Rename wagtailgeowidget.edit_handlers to wagtailgeowidget.panels (@katdom13)
18+
- Update imports in docs (@katdom13)
19+
20+
### Fixed
21+
- Ensure setup() is only called after user focus if showEmptyLocation is true (@kleingeist)
22+
- Add support for permissions on field panels (@unicode-it)
23+
24+
### Breaking changes
25+
- `wagtailgeowidget.edit_handlers` has been renamed to `wagtailgeowidget.panels`
1226

1327

1428
## [6.2.0] - 2022.07.03
1529
### Added
1630
- Add Wagtail 3 compability (@marteinn)
31+
- Add French translations (@ThbtSprt)
1732

1833
### Changed
1934
- Make GEO_WIDGET_EMPTY_LOCATION False by default (@marteinn)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ If you have ideas for improvement, please share your thoughts through an issue.
3737

3838
- Issue Tracker: [https://github.com/Frojd/wagtail-geo-widget/issues](https://github.com/Frojd/wagtail-geo-widget/issues)
3939
- Source Code: [https://github.com/Frojd/wagtail-geo-widget](https://github.com/Frojd/wagtail-geo-widget)
40+
- [Contribution documentation](https://github.com/Frojd/wagtail-geo-widget/blob/main/docs/contributing.md)
4041

4142

4243
## Security

docs/contributing.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Contributing
2+
3+
## General
4+
- This project uses git flow, any pull request should be based on the `develop` branch
5+
- Commits should follow the recommendations mentioned at https://cbea.ms/git-commit/ (TLDR; Use present tense)
6+
7+
## Requirements
8+
- docker
9+
- A working Google Maps API Key
10+
11+
## Instruction
12+
- Run `docker-compose up`
13+
- Open [http://localhost:8085](http://localhost:8085)
14+
15+
## Testing
16+
- Make sure you perform interface testing by going through the page models from `tests` and make sure they all behave as expected in the Wagtail interface
17+
- Run the test suite
18+
19+
## Commiting
20+
- Make sure your code are formatted using black
21+
- Update `CHANGELOG.md` with your changes

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"Programming Language :: Python :: 3.8",
5959
"Programming Language :: Python :: 3.9",
6060
"Programming Language :: Python :: 3.10",
61+
"Programming Language :: Python :: 3.11",
6162
"Topic :: Utilities",
6263
],
6364
extras_require={"test": test_extras},

wagtailgeowidget/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"""
88

99
__title__ = "wagtailgeowidget"
10-
__version__ = "6.2.0"
11-
__build__ = 620
10+
__version__ = "7.0.0"
11+
__build__ = 700
1212
__author__ = "Martin Sandström"
1313
__license__ = "MIT"
1414
__copyright__ = "Copyright 2015-Present Fröjd Interactive"

wagtailgeowidget/panels.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,11 @@ def widget_overrides(self):
4242

4343
def clone(self):
4444
return self.__class__(
45-
field_name=self.field_name,
46-
classname=self.classname,
4745
address_field=self.address_field,
4846
zoom_field=self.zoom_field,
4947
hide_latlng=self.hide_latlng,
5048
zoom=self.zoom,
49+
**self.clone_kwargs(),
5150
)
5251

5352

@@ -83,8 +82,8 @@ def widget_overrides(self):
8382

8483
def clone(self):
8584
return self.__class__(
86-
field_name=self.field_name,
8785
geocoder=self.geocoder,
86+
**self.clone_kwargs(),
8887
)
8988

9089

@@ -120,10 +119,9 @@ def widget_overrides(self):
120119

121120
def clone(self):
122121
return self.__class__(
123-
field_name=self.field_name,
124-
classname=self.classname,
125122
address_field=self.address_field,
126123
zoom_field=self.zoom_field,
127124
hide_latlng=self.hide_latlng,
128125
zoom=self.zoom,
126+
**self.clone_kwargs(),
129127
)

wagtailgeowidget/static/wagtailgeowidget/js/leaflet-field.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ function LeafletField(options) {
4545
} else {
4646
this.setup();
4747
}
48-
49-
this.setup();
5048
}
5149

5250
LeafletField.prototype.setup = function () {

0 commit comments

Comments
 (0)