Jérôme Lebleu
80cc70b7ce
Instantiate edit_handler and form once in ModelAdmin views
...
Make use of the same `edit_handler` and `form` objects during the whole
creation and edit views process. `edit_handler` is initialized and
bounded to the instance during `setup()` which fixes #5005 . This also
ensures that the form is cleaned only once.
2020-09-02 20:30:22 +01:00
Vince Salvino
7ec4b516fa
Specify required python versions ( #6366 )
2020-09-02 17:52:00 +01:00
Matt Westcott
461abec5b5
Release note for #6370
2020-09-02 10:36:27 +01:00
Andy Babic
0bfc7e127c
Add custom route tests to cover usage of the new render() method
2020-09-01 22:35:56 +01:00
Andy Babic
8fd5d66756
Add RoutablePage.render() helper method and update documentation
2020-09-01 22:24:08 +01:00
Matt Westcott
4e1e4f03c0
add missing 2.10.2 release notes file
2020-08-28 10:37:10 +01:00
Karran Besen
d9449150b5
Fix remove icon class from wagtail userbar icon
2020-08-28 10:35:51 +01:00
Matt Westcott
63702d368b
Add release notes for 2.10.2
2020-08-28 10:35:37 +01:00
Matt Westcott
4f42e61a2c
Fix incorrect reference to MIDDLEWARES
2020-08-27 16:07:22 +01:00
Matt Westcott
925d64730a
Add examples of replacing request.site
2020-08-27 16:05:06 +01:00
Kalob Taulien
3aa6643374
Update responsive embeds docs
...
Merge pull request #6361 from gasman/doc/responsive-embeds
2020-08-27 08:07:51 -06:00
Matt Westcott
e50056c3b0
Update responsive embeds docs
...
The current text still mentions the rich-text class (which is now formally deprecated) alongside responsive-object (which is not deprecated, but off by default). Split up the CSS snippet to make it clear that these are two distinct cases, and eliminate use of rich-text.
2020-08-27 12:25:23 +01:00
Matt Westcott
c3475c8fdf
Add USE_TZ=False test run to Travis
2020-08-26 17:02:36 +01:00
Matt Westcott
900fdd8177
Fix tests for USE_TZ=False
2020-08-26 17:02:36 +01:00
Matt Westcott
43cb1f7811
Add --disabletimezone option to runtests.py
2020-08-26 17:02:36 +01:00
Matt Westcott
0f637a22de
Add emailuser test run to Travis
2020-08-26 17:02:36 +01:00
Matt Westcott
070137363b
Fix TestFormWithCustomSubmission
2020-08-26 17:02:36 +01:00
Matt Westcott
1ca113fba5
Fix page / account management / filter tests for EmailUser
2020-08-26 17:02:36 +01:00
Matt Westcott
d3b3d4e203
Fix modeladmin tests for EmailUser
2020-08-26 17:02:36 +01:00
Matt Westcott
da5b5d4161
Further test fixes for EmailUser
2020-08-26 17:02:36 +01:00
Matt Westcott
a7492251c4
Don't get users by username in test_page_permissions
2020-08-26 17:02:36 +01:00
Matt Westcott
9bf23b576e
Split up test_specific fixtures
2020-08-26 17:02:36 +01:00
Matt Westcott
ebbd925048
Additional test fixes for EmailUser
2020-08-26 17:02:36 +01:00
Matt Westcott
391bfc0a43
Fix TestExplorablePages for EmailUser
2020-08-26 17:02:36 +01:00
Matt Westcott
537c4fb216
Make WagtailTestUtils.login into a general wrapper for logins to work across CustomUser and EmailUser
2020-08-26 17:02:36 +01:00
Matt Westcott
57bc07ed37
Add helpers for create_user / create_superuser
...
These allow us to use the same call for both username-based and email-based user models.
2020-08-26 17:02:36 +01:00
Matt Westcott
8c38dc5cf5
Revert hacks dealing with EmailUser not inheriting from PermissionsMixin
...
These were necessary when EmailUser was installed at the same time as CustomUser, because the reverse relations on Permission / Group would have clashed. Now we're only installing one at a time, this isn't necessary.
2020-08-26 17:02:36 +01:00
Matt Westcott
afb51eafbe
Add `--emailuser` flag to runtests.py to enable the EmailUser model
...
wagtail.admin.tests.test_password_reset (currently the only test module where EmailUser is in use) has been updated to skip the CustomUser or EmailUser-specific test according to the active AUTH_USER_MODEL, and so this now succeeds with or without the `--emailuser` flag.
2020-08-26 17:02:36 +01:00
Matt Westcott
0b070018f3
Extend emailuser test fixture to match customuser
...
This will allow us to load fixtures while AUTH_USER_MODEL is set to emailuser, without breaking foreign key references.
2020-08-26 17:02:36 +01:00
Matt Westcott
492b021e10
Move user fixtures into their own fixture files
...
When loading test fixtures, all files matching the given name (test.json) across all installed apps will be loaded, so tests will still behave as before; however, this allows us to cleanly skip loading fixtures for a given user model when that app is omitted from INSTALLED_APPS.
2020-08-26 17:02:36 +01:00
Matt Westcott
00bcf5474d
Move emailuser model into a separate wagtail.tests.emailuser app
2020-08-26 17:02:36 +01:00
Matt Westcott
30c1a4132c
Release note for #6335
2020-08-26 14:17:18 +01:00
Matt Westcott
3b361673ee
Fill in release date for 2.10.1
2020-08-26 14:14:13 +01:00
Matt Westcott
394e46f783
Fetch new translations from Transifex
2020-08-26 14:14:13 +01:00
Matt Westcott
7b58f9709a
Also add whitespace on <br /> and <hr /> tags
2020-08-26 14:13:10 +01:00
Matt Westcott
68febd981d
Ensure block level elements in rich text are whitespace-separated in indexed content
...
Fixes #6312
2020-08-26 14:13:10 +01:00
Matt Westcott
e3bbccd814
Fix timesince_last_update for naive datetimes (USE_TZ=False)
...
Fixes #6345
2020-08-25 15:11:24 +01:00
Matt Westcott
d06c52d495
Specify django-modelcluster >=5.0.2 to avoid django-taggit dependency issues
2020-08-25 13:52:04 +01:00
Katie McLaughlin
637000fc08
Add notes for CORS settings on Google Cloud Storage
2020-08-24 13:05:38 +01:00
Katie McLaughlin
707dc171dc
Add Google Cloud deployment references
...
App Engine video
Cloud Run codelab
2020-08-24 13:05:38 +01:00
Matt Westcott
23bec4345b
Release note for #6336
2020-08-24 09:48:00 +01:00
Matt Westcott
8e44476e4f
Correctly output Draft vs Published when no revisions exist
...
Fixes #6324
Also removed repeated calls to page.get_latest_revision.
2020-08-24 09:47:43 +01:00
Matt Westcott
3c4349cf7e
Build new strings for translation post #6344
2020-08-21 13:36:09 +01:00
Matt Westcott
a1f882b7c9
Convert remaining gettext .format strings to old-style string formatting
...
As per #5548 / #6238 . Fixes #6343
2020-08-21 13:26:00 +01:00
Matt Westcott
b111e100a6
Release note for #6329
2020-08-17 17:55:14 +01:00
Coen van der Kamp
58e4f3fe1c
Fix menu item icon margin
2020-08-17 17:09:03 +01:00
Coen van der Kamp
480c6f2a17
Fix report icon
2020-08-17 17:09:03 +01:00
Matt Westcott
3f1b41b823
Release note for #6319
2020-08-17 16:58:19 +01:00
Vyacheslav Matyukhin
e984190870
fix page history view on custom user models
...
Username models without username field caused an exception on page
history views.
This commit fixes #6317 .
2020-08-17 16:58:19 +01:00
Matt Westcott
46e5dbb5b0
Release note for #6322
2020-08-17 16:58:18 +01:00