0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
Commit Graph

6154 Commits

Author SHA1 Message Date
Matt Westcott
5de7be31be Recognise instagram embed URLs with www prefix (#2453) 2016-04-11 22:36:25 +01:00
Karl Hobley
bc608b2a9a Fixed missing full stop
Thanks @tomdyson for spotting!
2016-04-11 20:09:39 +01:00
Benjamin Bach
512b96aa82 Guidance to acknowledge that models.PROTECT is also fine. 2016-04-11 18:09:06 +01:00
Mikalai Radchuk
6c53a439a5 Update CHANGELOG and release notes 2016-04-11 17:01:55 +01:00
Mikalai Radchuk
305a86a68a Updates API test_documents
Now `test_documents` uses `get_document_model` function to get document model class.
Same approach used in `test_images`.
2016-04-11 17:01:55 +01:00
Mikalai Radchuk
1599a69af6 Replaces direct usages of Document model
We need to use `get_document_model` instead of `Document` directly
because Wagtail provides ability to define custom document model.
2016-04-11 17:01:55 +01:00
Karl Hobley
869404032f Rebuilt translation sources for wagtailimages
For #2471
2016-04-11 13:57:38 +01:00
Mikalai Radchuk
37803fa3dd Changes messages in empty list of images\documents (#2471)
This commit introduces tiny UX improvements for empty lists of images and documents:
 * Same message in both lists
 * Gives link to multiple upload form in both lists
2016-04-11 13:55:43 +01:00
Charlie Hornsby
5cb7ae01f6 FIx incorrect paginator label in example code (#2468) 2016-04-10 11:06:51 +01:00
Timo Rieber
1eae1ad390 Removed redundant debug settings from project template (#2465) 2016-04-09 17:35:37 +01:00
Tomas Olander
196250fd47 Remove unused import in project template (#2466) 2016-04-09 17:32:39 +01:00
Karl Hobley
877c8015d7 Fixed import order in core/models.py 2016-04-09 17:32:14 +01:00
Chris Rogers
26f5016bb5 Use site_name for display for sites if available 2016-04-08 16:50:58 +01:00
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