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

211 Commits

Author SHA1 Message Date
Andy Babic
37bbbb9dba Improved code separation in contrib.modeladmin (#3467)
* Split `helpers.py` into separate `url.py`, `permission.py` and `button.py`, dedicated to those separate concerns and update the docs accordingly

* Move `ThumbnailMixin` out to `mixins.py` and update documentation accordingly

* Ad #NOQA to import lines to hush pep errors

* Alphabetise helper import order

* - Delete `helpers/helpers.py`
- wagtal -> wagtail in docs
2017-03-28 10:34:03 +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
Matt Westcott
60f28f8dc3 Mark API v1 documentation as deprecated (#3429) 2017-03-07 10:49:19 +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
Matheus Bratfisch
ca16e9187f Add exclude_fields to ModelAdmin and ModelFormView, tests and doc 2017-02-22 11:41:44 +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
Andy Chosak
b00bf70229 Document register_page_listing_more_buttons (#3377)
* add docs for register_page_listing_more_buttons
2017-02-16 21:40:57 +00:00
Gagaro
ac7ad067d2 feat: can order hooks 2017-02-10 10:06:43 +00:00
Matt Westcott
ee837dedc5 in Page reference docs, don't tell people to consult source code (#3303)
Stylistically this sentence is somewhat content-free (if the API is really "relatively straightforward", users can see that for themselves rather than us informing them of that fact...), and we don't want to encourage people to use undocumented methods (because we can't guarantee that the API for them will remain stable).
2017-01-28 00:11:52 +00:00
Kevin Whinnery
6402e56fb5 Update model_reference.rst 2017-01-26 20:05:35 +00:00
Mikalai Radchuk
e25d2fc025 Fix a typo in a docstring 2017-01-25 21:34:25 +03:00
Mikalai Radchuk
8cabddfda0 Fix grammar mistakes 2017-01-25 21:34:25 +03:00
Mikalai Radchuk
7f10938b57 Add docs about wagtailforms customisation
Fixes #2945
2017-01-25 21:34:25 +03:00
Matt Westcott
29645c0f6a Mention addition to INSTALLED_APPS in routablepage docs
Fixes #3286
2017-01-23 17:07:19 +00:00
Matheus Bratfisch
b01376ad72 Add after/before_copy_page hooks, test and docs 2017-01-16 19:00:29 +00:00
Matt Westcott
1d4743d27c Update project template + docs to clarify that wagtail_urls should appear at the end of urlpatterns 2017-01-13 17:06:52 +00:00
Matt Westcott
ff44666c36 Add note that wagtailforms is not a replacement for Django forms (#3190) 2016-12-05 18:19:59 +00:00
Chris Rogers
89e985d02a added convenience method in_site and tests 2016-11-30 18:45:14 +00:00
Tim Heap
16213db0f8 Remove old versionadded notes
A step has been added to the release process notes to do this for future
releases as well.

https://github.com/torchbox/wagtail/wiki/Creating-a-new-Wagtail-release
2016-11-28 13:41:35 +00:00
Tim Heap
6ba34636cb Fix whitespace errors in docs
Trimmed trailing whitespace, convert tabs to 4 spaces, add preference
for spaces to `.editorconfig`.
2016-11-28 13:41:35 +00:00
Tim Heap
254e675634 Use .. code-block:: console for all shell commands
This is the correct lexer for interactive console sessions, according to
<http://pygments.org/docs/lexers/>. This does require command lines to
be prefixed with `$`, otherwise they are interpreted as the output of a
command. It highlights the command nicely, including environment
variables, strings, and comments.
2016-11-28 13:41:35 +00:00
Andy Babic
23eced1fcd `Added support for 'exclude_from_explorer' attribute on ModelAdmin class 2016-11-23 16:51:08 +00:00
Albert O'Connor
a5b544631b Update the Cloudflare backend to use the v4 API
Fixes #3146
2016-11-17 12:01:57 +00:00
Janneke Janssen
24eee6e41e [FIX] Cloudfront docs typo (#3143) 2016-11-08 09:42:46 +00:00
Tim Heap
d377f0c521 Add Page.objects.first_common_ancestor() method 2016-10-26 13:01:46 +01:00
Andy Babic
78f67f8fdb * Gives the result_row_display control over the <tr> element for each row in IndexView by shifting the <tr> out of result_list.html and into result_row.html
* `result_row_display` adds a `data-object_pk` attribute to each row, to make items easier to identify with JS
* Adds `get_extra_attrs_for_row()` method to `ModelAdmin`, to give developers a way of adding further attributes to the `<tr>` element
2016-10-21 17:20:54 +01:00
Tom Dyson
512bf8936d single typo in Cloudfront docs (#3099) 2016-10-20 15:25:27 +01:00
Henk-Jan van Hasselaar
8a3c47f76a Use get_admin_display_title in admin 2016-10-13 15:46:12 +01:00
Gagaro
9710c292eb Added getters for templates in AbstractForm 2016-10-13 15:08:49 +01:00
Mikalai Radchuk
2e1c58a586 Release notes for #3047 2016-10-10 14:24:01 +03:00
Axel Haustant
e893dd895b Allows to define custom site settings edit handler
Added site settings edit handler tests

Ensure proper setting rendering with tabs
2016-10-10 14:23:57 +03:00
Mikalai Radchuk
90552bedb5 Fix site ref in docs 2016-10-01 22:04:46 +03:00
Andy Babic
0c1b67bc16 Add documentation to help with customisation of contrib.modeladmin 2016-09-28 20:52:19 +01:00
riceyrice
5869bc37bb Allow configuration or override of QueryDailyHits garbage collection 2016-09-22 14:21:38 +01:00
Mikalai Radchuk
fb93a6d6b9 Allow to limit access to form submissions (#3016)
Add the filter_form_submissions_for_user hook

Thanks @kaedroho for the code review and docs.
2016-09-22 14:36:39 +03:00
Matt Westcott
89f4699a91 Fix underlines 2016-09-19 13:51:04 +01:00
Matt Westcott
8aa316c575 Correct description of 'title' class on FieldPanel - fixes #2990 2016-09-15 17:02:25 +01:00
Matt Westcott
b0aa210078 Recognise classname parameter on InlinePanel. Fixes #1316 2016-09-15 16:44:51 +01:00
Karl Hobley
4dc1ef05f8 Removed unused import from example
Thanks @timheap for spotting
2016-09-15 09:18:04 +01:00
Karl Hobley
8b9b2ced36 Docs for new hooks 2016-09-14 16:52:28 +01:00
Luiz Boaretto
24feca5333 Fix typo on modeladmin docs 2016-09-04 12:43:39 -03:00
Matt Westcott
1d5475672e Release note for #2577 2016-09-01 16:20:57 +01:00
dirtycoder
959723eddb Create a panel to display informations about the submissions for form pages, fix #406 2016-09-01 15:22:30 +01:00
Karl Hobley
cdcdb4a4cd Update frontendcache.rst 2016-08-29 16:38:26 +01:00
Karl Hobley
692c4017f9 Changelog and release note for #1845 2016-08-29 15:24:53 +01:00
Rob Moorman
df45c215a2 Added support for AWS CloudFront in Frontend cache invalidation module (#1845)
* added base cloudfrontbackend and testcase

* added boto3 cloudfront client

* implemented create invalidation method
added error handling botocore

* added aws docs

* fixed typo

* flake8 fixes

* added boto3 configuration docs

* removed return

* purge path instead of full url

* added multisite hostname mapping

* added validation of DISTRIBUTION_ID

* renamed Cloudfront to CloudFront

* added note to include www in mapping
added tests for cloudfront site mapping

* removed deprecated has_key, used in
fixed _create_invalidation

* changed type checking of dict
removed debug line of code to check hostname

* fixed dict type checking condition
added assert t make sure no invalid cache is being purged

* changed import order

* fixed isort error

* more detailed error message for cloudfront
pep8 fixes 120 chars per line

* Log missing cloudfront distribution id as info

Was logging as error, but it may be possible that a developer wants cloudfront on only specific hostnames.

* , => .

* Docs edits

* Removed hard-dependency on boto3
2016-08-29 15:15:27 +01:00
Matt Westcott
5dee12508d Mark django-medusa as no longer maintained 2016-07-29 15:54:52 +01:00
Matt Westcott
bdd80dd33e Fix styling of email fields in AbstractEmailForm example (#2821)
classname="full" is incorrect here (it generates excessive padding); also, using a FieldRowPanel
can make the display neater.
2016-07-08 16:47:54 +03:00
Mikalai Radchuk
0b29ba80db Makes notes for settings module more visible (#2826) 2016-07-06 19:01:09 +03:00
Andreas Nüßlein
5b72f81327 mention edit_handler in this context (#2716) 2016-06-15 13:54:54 +01:00