0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
Commit Graph

806 Commits

Author SHA1 Message Date
Bojan Mihelac
0f53afc5a6 Adds support for custom date and datetime formats (#2595)
It is possible to set default format for date/datetime inputs. This works together
with standard django localization.

    # django settings
    USE_I18N = True
    LANGUAGE_CODE = 'sl'

    # wagtail settings
    WAGTAIL_DATE_FORMAT = '%d.%m.%Y.'
    WAGTAIL_DATETIME_FORMAT = '%d.%m.%Y. %H:%M'

DateBlock, DateTimeBlock accepts additional keyword argument `format`.
2017-03-31 16:30:27 +01:00
Matt Westcott
72a1b82e3e Release note for #3068 2017-03-30 17:38:44 +01:00
Andreas Nüßlein
421eb9ef8a a few too many quote's
pk = quote(getattr(obj, self.opts.pk.attname))
    self.url_helper.get_action_url('edit', quote(pk))   # < this was a little unneccessary, double function calls in multiple locations
2017-03-30 17:06:01 +01:00
Karl Hobley
babe8a0c09 Fix annotate_score followed by slice (#3518)
This fixes the bug reported by @nimasmi in
https://github.com/wagtail/wagtail/issues/3431#issuecomment-288051751

Slicing creates a new SearchResults object but the ``score_field`` (set
by ``.annotate_score()`` wasn't being passed along to the new
SearchResults causing the score to not be annotated.
2017-03-30 14:24:17 +01:00
Matt Westcott
cc52c1b1ca Revert "Fixes ticket #2251. Implemented is_multipart on EditHandler and created tests." (#3519)
See https://github.com/wagtail/wagtail/pull/3501#issuecomment-290380892 - this change wrongly assumes that edit handlers will always be used with a ClusterForm, and a fix isn't required here anyway because it was fixed separately as https://github.com/wagtail/django-modelcluster/pull/73.

This reverts commit a6bb67f75d.
2017-03-30 14:16:46 +01:00
Thijs Kramer
6a87e90171 Adjust the filter button height to match the height of the input fields next to it 2017-03-28 19:54:46 +02:00
Mikalai Radchuk
35a1af2b3b Release notes for #3482 2017-03-27 20:28:45 +03:00
Janneke Janssen
4ab57ddd1f Fixes invalid focal_point for hiding the marker if no focal point is applicable 2017-03-26 13:30:56 +02:00
Wietze Helmantel
a6bb67f75d Fixes ticket #2251. Implemented is_multipart on EditHandler and created tests. 2017-03-25 13:20:24 +01:00
Christine Ho
78a2e8ae96 Display a comma separated string for fields returning content as lists 2017-03-24 14:30:01 +01:00
Rob Moorman
d5d23b01a5 Fix missing target for django-bakery docs 2017-03-24 14:27:59 +01:00
Ralph Jacobs
87a7a798c9 Change scroll factor to make it more userfriendly 2017-03-24 14:01:17 +01:00
Kees Hink
6961f33078 Restrict view_draft to can_publish / can_edit permissions (#3474) 2017-03-24 11:54:10 +01:00
Janneke Janssen
20e8aabdf9 Release notes for #3291 / #3481 2017-03-24 11:52:38 +01:00
Matt Westcott
b229953c0f Release note for #3439 / #3495 2017-03-24 11:41:45 +01:00
Matt Westcott
6aea6a6856 Release note for #3425 / #3494 2017-03-24 11:06:42 +01:00
maartenkling
c0c0a58c44 Change buttons for mobile #2780 2017-03-24 10:11:56 +01:00
Wietze Helmantel
285d9f0b43 Ticket #2918 added is_preview flag to serve_preview methods 2017-03-23 17:58:18 +01:00
Christine Ho
67ff4c26df Add Page type to PageChooser button label 2017-03-23 17:40:27 +01:00
Alex Gleason
bbdbf3fd81 Allow spaces in tag fields 2017-03-23 17:19:47 +01:00
Matt Westcott
eb9cc639d2 Link to the full Elasticsearch setup docs from the Performance page 2017-03-23 15:51:11 +01:00
Matt Westcott
00c6a5f220 Don't set is_staff flag on users
Wagtail doesn't routinely require access to Django admin, so it makes sense for Wagtail to not enforce an opinion on who does or doesn't get access.

Fixes #970 and #2777
2017-03-23 15:39:51 +01:00
Rob Moorman
c7b778c4e9 Removed docs
Added release docs with upgrade consideration of alternative to django-medusa
2017-03-23 12:30:21 +01:00
Ralph Jacobs
cf815e8897 Change event handler to keyup. This fixes the IE10 + IE11 submit issue 2017-03-23 12:04:04 +01:00
Matt Westcott
31f4ac18c6 Release note for #3478 2017-03-23 11:50:57 +01:00
Rob Moorman
82a8202bb2 Release notes for #3483 2017-03-22 20:56:30 +01:00
Christian Peters
9257a4a1dc Switching from undefined/indeterminate queryset to a defined one. (#3468) 2017-03-21 10:38:31 +01:00
Janneke Janssen
a2d7b133fc Release notes for #3440 2017-03-13 17:18:25 +01:00
hyden
01e891d0c4 Convert every Cloudflare API error message into string (#3436) 2017-03-09 19:36:08 +00:00
Andy Babic
3348cd5c89 Reduce modeladmin’s dependency on wagtail.wagtailimages and wagtail.wagtaildocs
- Remove imports at the top of options.py and views.py that result in ImportError when those apps aren’t installed
- Alter ThumbnailMixin and InspectView to use the `wagtail.wagtailimages.shortcuts.get_rendition_or_not_found()` method to render images, which handles missing image source files gracefully, and reduces code duplication.
- Simplify `get_field_display_value()` by not limiting image and document rendering to ForeignKey fields. It should work consistently for property methods or other attributes too.
2017-03-03 15:33:17 +00:00
Trent Holliday
f28130647a Title not displaying page name
The `page` context variable does not exist for that view.
2017-03-03 09:56:05 +01:00
Janneke Janssen
6e9965d47f Fix possibility of tabbed interface conflicting with regular IDs 2017-03-01 16:57:09 +00:00
Stein Strindhaug
35305e1649 Fix for #3268 : Make file-label translated 2017-03-01 15:50:42 +00:00
Matt Westcott
54012e6397 Fix backtick quoting 2017-02-23 12:24:32 +00:00
Matt Westcott
d4114ff4ae Release note for #3007 2017-02-23 12:23:03 +00:00
Matt Westcott
63d52af0a3 Release note for dropping Django 1.9 and Python 3.3 (#3376) 2017-02-22 17:40:09 +00:00
Janneke Janssen
23649990c2 Fixes the search promotion query popup from throwing an unexpected error. (#3395)
Fixes #3384
2017-02-22 16:16:36 +00:00
Matheus Bratfisch
ca16e9187f Add exclude_fields to ModelAdmin and ModelFormView, tests and doc 2017-02-22 11:41:44 +00:00
Janneke Janssen
493a30bcf9 Add nvmrc to the project and updated developing docs 2017-02-20 11:14:33 +01:00
Andy Babic
0c056552eb Style amends for modeladmin.view.IndexView:
- Removes unnecessary right padding from result list when listing is supposed to be full-width (no filters) on desktop
- Removes unnecessary left/right padding from result list on mobile (the table cells have padding of their own)
- In order to be more consistent with the Explorer list view, only make orderable column header links 'teal' if the listing is currently ordered by that field
- Better use of scss hierarchy to improve readability
- Remove the ‘teal’ CSS class from orderable header links
2017-02-17 21:08:13 +01:00
Mikalai Radchuk
eb47526888 Enhancement for PageChooserBlock
Allow the target_model argument to be a list or tuple.
2017-02-17 11:30:32 +00:00
Gagaro
46c9cdda15 feat: Added construct_image_chooser_queryset, construct_document_chooser_queryset and construct_page_chooser_queryset hooks 2017-02-17 10:40:03 +00:00
Matt Westcott
25c2be10c3 Remove image feature detection signal handler from docs 2017-02-16 17:10:38 +00:00
Mike Dingjan
8c970e4848 Update documentation 2017-02-16 16:54:36 +00:00
Matt Westcott
ea2c041c6e Set release date for 1.9
Conflicts:
	CHANGELOG.txt
2017-02-16 10:47:34 +00:00
Matt Westcott
14f991df14 Allow pageurl / slugurl tags to function when request.site is not available
Fixes #3352

Conflicts:
	CONTRIBUTORS.rst
2017-02-16 10:15:39 +00:00
Matt Westcott
8f25cd9b92 Release note for #3067 2017-02-15 15:20:38 +00:00
Karl Hobley
c900f71117 Rename project_template homepage to "Home" 2017-02-14 17:20:19 +00:00
LB (Ben Johnston)
5aa8e00d77 fix location of {{ block.super }}
Fix: extra_js in snippets type_index `{{ block.super }}` should be outside script tags.
All other locations of block.super are outside of script tags
2017-02-14 10:45:25 +00:00
Janneke Janssen
5d706d2542 Release notes for #3359 2017-02-13 11:21:40 +01:00