Wykres commitów

6041 Commity (9bbf1ba9a0bc20fc65656ee85d6d19890b8ab002)

Autor SHA1 Wiadomość Data
Matthew Downey 9bbf1ba9a0 updated Site.find_for_request() to only hit the database once, and related unit tests 2016-04-08 12:15:23 +01:00
Liam Brenner 8b2a58ecae Changed button class for saving settings 2016-04-06 14:56:31 +01:00
Matthew Downey c289028cd9 updated changelog for registered settings menu items 2016-04-06 14:14:21 +01:00
Matthew Downey cc509f226a ensure admin settings urls start with app label and model name, so they show as highlighted 2016-04-06 14:10:28 +01:00
Matt Westcott 32d6d43692 Add test for #2308 2016-04-06 14:10:28 +01:00
Timo Rieber 31119b5954 Added openshift deployment infos using wagtail-openshift-quickstart 2016-04-06 11:44:25 +01:00
Matt Westcott 1e3c498c34 Set 'identifier' as the PK in the initial CustomUser migration
MySQL breaks when trying to rename it, and we don't need to worry about doing migrations properly
because test databases are only temporary anyway...
2016-04-05 19:11:28 +01:00
Matt Westcott 3b09ffaee5 Fix remaining references to User.id caught by tests 2016-04-05 16:36:27 +01:00
Matt Westcott 4f50e576aa Use a non-standard primary key name on CustomUser, to catch misuse of 'id' instead of 'pk' 2016-04-05 16:16:56 +01:00
Mikalai Radchuk 1172349cca Replaces some usages of "id" field with "pk" field 2016-04-05 16:00:20 +01:00
Roel Bruggink bedde59aaa Add 'revisions' action to 'more'. 2016-04-05 15:43:24 +01:00
Josh Schneier 0855f59500 Fix deprecated usage of register.assignment_tag 2016-04-05 15:40:13 +01:00
Matt Westcott c428f92711 Add Janneke Janssen to contributors 2016-04-05 15:04:10 +01:00
Janneke Janssen 4b4b5fd601 Fixes regression padding on messages after (partially) moving to a mixin 2016-04-05 14:41:40 +01:00
Karl Hobley b6c80cde36 1.4.3 no longer in development 2016-04-04 21:39:58 +01:00
Karl Hobley 81cdca1a91 Changelog/release note for #2438 2016-04-04 17:15:24 +01:00
Karl Hobley 1e44d78a02 Simplified _get_lowest_common_page_class 2016-04-04 17:06:40 +01:00
Tim Heap 09878fcfd8 Do not use ContentTypes in PageChooserPanel
Using ContentTypes can lead to the awkward case where they are used
before the database is migrated, leading to errors on start up. Removing
ContentTypes and using plain Model classes instead makes this
impossible, and also makes the code clearer.

Fixes #2433
2016-04-04 17:06:40 +01:00
Tim Heap a48ae09ce9 Reset warnings before testing warnings 2016-04-04 17:06:40 +01:00
Karl Hobley a6e53abd34 Changelog/release note for #1913 2016-04-04 10:35:32 +01:00
Karl Hobley 81795200c4 Docs for dynamic image serve view 2016-04-04 10:20:52 +01:00
Karl Hobley 430a3a2dae Moved action validation to as_view method 2016-04-04 10:20:52 +01:00
Karl Hobley 231523d3f4 Replace concatenation with string formatting
Thanks @prydie and @timheap
2016-04-04 10:20:51 +01:00
Karl Hobley fa2ad257a5 Check signature before looking up image
The check doesn't need the image object so might as well move it
2016-04-04 10:20:51 +01:00
Karl Hobley 5ad0997dd8 Moved key-related methods out of ServeView class
Accessing these functions feels less hacky now
2016-04-04 10:20:51 +01:00
Karl Hobley 0049c0f310 Made generate/verify signature importable from views.serve
... and deprecated wagtailimages/utils.py
2016-04-04 10:20:51 +01:00
Karl Hobley 47132306e5 Cleanup try-except block in ServeView 2016-04-04 10:20:51 +01:00
Karl Hobley fd3334d160 Moved generate/verify signature into ServeView 2016-04-04 10:20:51 +01:00
Karl Hobley 68d11d8dc2 Added redirect action to serve view 2016-04-04 10:20:51 +01:00
Karl Hobley 53adaf49d2 Serve view model is now configurable 2016-04-03 23:17:00 +01:00
Karl Hobley 4783843601 Make serve view a class-based-view 2016-04-03 23:17:00 +01:00
Karl Hobley 0fe1a1294a Allow an extra path component on image serve view
Currently, we only allow the following format for the serve view:

    /images/<signature/<id>/<filter>/

This URL doesn't look nice as an image is expected to be a standalone file. This commit makes the following format possible:

    /images/<signature/<id>/<filter>/test.jpg
2016-04-03 23:17:00 +01:00
Karl Hobley ea758167db Catch SourceImageIOError in frontend serve view
Fixes #1066
2016-04-03 23:17:00 +01:00
Karl Hobley 7f9572d8e8 Moved images/frontend view module to images/serve 2016-04-03 23:16:29 +01:00
João Luiz Lorencetti ffbe4730f0 The destination of the ParentalKey should be a subclass of ClusterableModel 2016-04-03 20:18:57 +01:00
Tim Heap a0af3d6685 Ensure absolute_import, unicode_literals imported in all files
Drone will now check that

    from __future__ absolute_import, unicode_literals

is part of every Python source file, to ensure a consistent experience
across all versions of Python.

See #2392 for an instance where missing `unicode_literals` was causing
problems.

Add missing absolute_import, unicode_literals to all files

Explicitly ensure strings are of the correct types

Now that unicode_literals is in every file, some things that used to
be py2 `str`s were now `unicode` instead. This caused issues with
generated class / function names, which must be `str` in all versions of
Python. This means bytes in py2, and unicode in py3. A test also checked
for the incorrect type of SafeString. HTML content should always be
unicode, so this has been fixed.
2016-04-03 13:11:48 +03:00
Alex Gleason 4499a859ba Merge pull request #2427 from toumaz/fix_settings_docs
Fix site settings docs for setting an icon
2016-04-01 12:13:32 -04:00
Tomas Olander 10e564b935 Fix site settings docs for setting an icon
The "icon-" prefix is automatically added in SettingMenuItem.
Using "icon-placeholder" as suggested would thus result in
the CSS class "icon-icon-placeholder".
2016-04-01 10:50:03 +02:00
Tim Heap c038185915 Remove workarounds for bad request method checking
Previously, the POST data could not be empty for some views, otherwise
they would not work. This caused the workarounds to be necessary. The
request method detection was fixed in the previous commit, so this
commit removes the workarounds.
2016-03-31 12:51:24 +01:00
Tim Heap 7fa340f54b Check for POST requests correctly
Check `if request.method == 'POST':`, instead of `if request.POST:`. The
latter works as long as there is POST data, but on a delete form, for
example, there isn't any. It works fine usually, as the `csrf_token`
counts as POST data, and is included in all requests, but leads to
strange work arounds being required in tests.
2016-03-31 12:51:01 +01:00
Karl Hobley 25ab44237b 1.4.2 no longer in development 2016-03-31 10:11:21 +01:00
Karl Hobley 0e43826d96 Tweaks to changelog message 2016-03-30 22:29:33 +01:00
Tim Heap b3aa292110 Use unicode_literals in some tests missing it
These tests sent some Python 2 `str`s to unidecode via taggit, which
raised a RuntimeWarning. These strings should be unicode, and are
unicode when they come from Django outside of the tests.

unicode_literals should be added to all Python files to ensure
consistent handling of strings across Python versions, but that is a
larger and more controversial change.
2016-03-30 21:56:29 +01:00
Tim Heap edc236cb06 Verify SSL certificates for Elasticsearch connections by default
Making developers opt out of extra security is better than making them
opt in, especially when they may not be aware of the security they are
missing out on.
2016-03-30 21:56:03 +01:00
Tim Heap 888a1e0d4b Use aware datetimes in tests
Using naive datetimes was raising RuntimeWarnings
2016-03-30 21:55:44 +01:00
Tim Heap 94e6c2bbea Use add_arguments over deprecated option_list 2016-03-30 21:55:17 +01:00
Tim Heap 4ae35e7f03 Use _meta.get_fields() over deprecated _meta.get_all_related_objects() 2016-03-30 21:54:46 +01:00
Tim Heap 2c0d3b477b Use field.rel over field.related, rel.model over rel.to 2016-03-30 21:54:11 +01:00
Tim Heap a9f1d23b9f Stop using methods deprecated in Wagtail
Some code was using methods from Wagtail, even though those methods were
deprecated with alternatives provided. Those alternatives are now used
instead.
2016-03-30 21:53:39 +01:00
Tim Heap 272b7223cf Update django-taggit version to 0.18.x branch 2016-03-30 20:02:26 +01:00