Thibaud Colas
55fe295346
Remove docs for WAGTAILSEARCH_RESULTS_TEMPLATE, WAGTAILSEARCH_RESULTS_TEMPLATE_AJAX
...
The templates they would override have been removed from our search app, and copies placed in the project template.
2021-06-28 11:23:24 +01:00
Thibaud Colas
86b84a2010
Add headings for all settings
2021-06-28 11:23:24 +01:00
Storm Heg
3ee060ffd7
Add keyboard and screen reader support to Wagtail user bar ( #6994 ). Fix #6108
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-06-26 20:53:44 +01:00
Petr Dlouhý
50e4f5151d
fix small youtube embed - allow to override max_width/max_height in EmbedBlock
2021-06-25 16:15:09 +01:00
Matt Westcott
87057501ac
Add titlesonly to reference / topics top-level TOCs
...
This prevents duplicated headings in places where the second-level index page has intro blurbs for each subsection (and also means we're not listing out long multi-section pages in full in the index, but given how big these indexes are that's probably not a bad thing).
2021-06-18 15:17:24 +01:00
Matt Westcott
de9588590b
Allow workflows to be disabled ( #7218 )
...
Introduce a WAGTAIL_WORKFLOW_ENABLED setting; when false, the workflow report and settings menus are hidden, permissions are not registered, moderation-related dashboard panels on the homepage are skipped, workflow actions on add/edit page are hidden, and model methods such as page.current_workflow_state return None / False immediately without any db queries.
2021-05-26 19:23:28 +01:00
Bojan Mihelac
0dfc342d66
Small fix in doc for routablepage
2021-05-19 15:15:49 +01:00
Karl Hobley
8e25960972
Telepath set up for new sidebar
...
* Add ability to register multiple hooks with register_temporarily
It's not possible to add multiple items in a ``with`` block in multiple
lines. So to register multiple hooks, you either need to put them all on
one line or add many nested ``with`` blocks.
This commit adds the ability to pass in a list of hooks into one call.
This works around the syntax error, but there's still no way to
represent this in a way that flake8 is happy with so I've added
``#noqa`` in a few places.
* Telepath set up for new sidebar
* unindent hooks.register_temporarily with blocks
Co-authored-by: Matt Westcott <matt@west.co.tt>
* Update wagtail/core/telepath.py
Co-authored-by: Matt Westcott <matt@west.co.tt>
Co-authored-by: Matt Westcott <matt@west.co.tt>
2021-05-14 16:16:55 +01:00
fabienheureux
6d01ced56b
Fix usage of html syntax instead of html+django ( #7138 )
2021-05-05 11:08:40 +01:00
Matt Westcott
9d29ba862c
Document idForLabel on the telepath widget API
...
Fixes #7145
2021-05-04 16:01:01 +01:00
jacobtoppm
59f63abdad
Add documentation for commenting
2021-04-30 17:46:08 +01:00
jacobtoppm
24899dddb8
Add WAGTAILADMIN_COMMENTS_ENABLED default to docs
2021-04-28 10:08:13 +01:00
jacobtoppm
9728fab70e
Add WAGTAILADMIN_COMMENTS_ENABLED setting
2021-04-27 19:28:51 +01:00
Karl Hobley
ab8608a74f
Docs for customising account settings
2021-04-20 18:43:22 +01:00
Coen van der Kamp
b1b69360a3
Add contrib simple translation ( #6528 )
2021-04-14 08:56:00 +01:00
Samir Shah
0daae4a2b8
Allow a target variable to be specified for get_settings template tag. ( #6891 )
2021-03-26 23:28:07 +00:00
Matt Westcott
571b9e1918
Add example of a widget adapter class
2021-03-23 18:57:53 +00:00
Matt Westcott
3e2c928e2f
Add StreamField context to block examples
2021-03-23 18:57:53 +00:00
Matt Westcott
0f75fb14f1
Add reference page for the client-side widget API
2021-03-23 18:57:53 +00:00
Matt Westcott
b3c39216f2
Create a 'streamfield' subsection within the reference docs
2021-03-23 18:57:53 +00:00
Matt Westcott
f3e33f849f
Convert StreamField reference to proper class definition markup
2021-03-23 18:57:53 +00:00
Matt Westcott
37c2326150
Split up StreamField documentation [skip ci]
2021-03-23 18:57:53 +00:00
Jaap Roes
8d0eff1717
Fix typo in hooks reference example ( #6926 )
2021-03-16 17:14:52 +00:00
Thibaud Colas
8b07ad4cea
Add support for SVG icons to SearchArea subclasses and register_admin_search_area ( #6493 )
2021-03-09 11:33:06 +00:00
Thibaud Colas
5257ef6c84
Update register_admin_menu_item documentation to match SVG icons setup ( #6892 )
2021-03-09 12:04:09 +01:00
naglis
73d41059f8
Fix typo in site settings documentation example ( #6881 )
...
Lowercase `i` is used in the model definition and in other examples.
2021-03-08 13:19:31 +00:00
Naomi I. Morduch Toubman
664b0489fe
Change `master` to `main` ( #6830 )
...
* Update references to `master` branch to say `main`
* Update external links
* Update links in old release notes
Use tagged versions of code rather than current code
2021-03-03 13:33:19 -05:00
Andy Babic
fa8402f633
Implement PageQuerySet.defer_streamfields()
2021-03-03 13:03:46 +00:00
Andy Babic
8f38aaae87
Update type(), not_type(), exact_type() and not_exact_type() to accept multiple model classes as arguments
2021-03-02 20:00:28 +00:00
Storm Heg
24ef0e62e6
Fix documentation indentation
...
Fix code block indentation in tutorial.rst
Prevent it from being displayed as a quote.
Fix indentation in pages.rst
Fix indentation in indexing.rst
Fix indentation in searching.rst
Fix indentation in backends.rst
Fix indentation in renditions.rst
Fix indentation in custom_image_model.rst
Fix indentation in feature_detection.rst
Fix indentation in image_serve_view.rst
Fix indentation in custom_document_model.rst
Fix indentation in i18n.rst
Fix indentation in privacy.rst
Fix indentation in page_editing_interface.rst
Fix indentation in rich_text_internals.rst
Fix indentation in extending_hallo.rst
Fix indentation in configuration.rst
Fix indentation in usage.rst
Fix indentation in theory.rst
Fix indentation in model_reference.rst
Fix indentation in queryset_reference.rst
Configure editors to indent .rst files with 2 spaces
In order for the documentation to be styled correctly, the generator
depends on indentation. Too much indentation can result in the content
being wrapped in a quote block, which looks bad.
Fix indentation in sitemaps.rst
Fix indentation in frontendcache.rst
Fix indentation in routablepage.rst
Fix indentation in table_block.rst
Fix routablepage.rst autodocs disppearing
Fix indentation in table_block.rst
Fix indentation in redirects.rst
Fix indentation in table_documentation-modes.rst
Fix indentation in browser_issues.rst
Fix indentation in release_process.rst
Fix indentation of release notes
One more indent fix in the release notes
Fix indentation warnings
Fix warning about undefined label in docs
Error during `make html`:
wagtail/docs/releases/1.7.rst:25: WARNING: undefined label: jpeg_image_quality
2021-02-26 09:17:00 +00:00
James Gutu
93abdabd41
moved jinja2 page from Advanced Topics to Reference
2021-02-04 12:12:11 -08:00
Matt Westcott
9886cb0476
add missing : to after_create_page example
2021-01-27 09:21:42 +00:00
Thibaud Colas
0dbd69f491
Configure Sphinx for Markdown support ( #6711 )
2021-01-26 22:09:52 +00:00
Matt Westcott
14daf4be0a
Remove outdated versionadded/versionchanged notes in docs
2021-01-19 09:51:01 +00:00
Andy Babic
f905e705da
Add Page.specific_deferred ( #6661 )
2021-01-18 13:25:55 +00:00
Matthias Rohmer
9a1fc6d243
Add missing import to example code snippet ( #6638 )
...
Adding this makes the code snippet ready to use via copy and paste.
2021-01-15 21:10:55 +00:00
LB
7737497239
fix JS code example in hooks docs
...
- when returning format_html `{` (brace) characters must be escaped
- https://docs.python.org/3/library/string.html#format-string-syntax
2021-01-15 13:18:15 +00:00
Luis Nell
a726c93df4
fix: signal receivers example raising exception
...
Signal receivers must accept `**kwargs`, otherwise one runs into this:
```
File "/lib/python3.8/site-packages/django/dispatch/dispatcher.py", line 94, in connect
raise ValueError("Signal receivers must accept keyword arguments (**kwargs).")
ValueError: Signal receivers must accept keyword arguments (**kwargs).
```
2021-01-11 11:25:19 +00:00
Bohreromir
3d18986610
fix ModelAdmin example ( #6645 )
2020-12-17 16:39:30 +00:00
Karl Hobley
45650053d5
Avoid recommending replacing image/document models entirely ( #6624 )
...
... when using the ``WAGTAILIMAGES_IMAGE_MODEL``/``WAGTAILDOCS_DOCUMENT_MODEL`` settings.
We can't really support this as we add new fields and methods to these base classes which all images/documents must support. If we did want to support swapping out the models entirely, every addition we make to the base models could be a breaking change.
2020-12-09 16:29:41 +00:00
Dan Braghis
05587e0d84
Allow customising image/document admin forms ( #6462 )
2020-12-09 12:35:19 +00:00
minusf
a18a36d820
Fix indentation of locked_by block in documentation ( #6580 )
2020-12-02 10:40:25 +00:00
Matt Westcott
6e1e36256a
Remove elasticsearch 2 support
2020-11-05 12:04:12 +00:00
Naglis Jonaitis
74c692ba21
Fix ModelAdmin documentation example
...
The `get_extra_class_names_for_field_col` seems to have an `if` missing
and uses an undefined `balance`.
2020-11-03 13:49:18 +00:00
Loic Teixeira
6c9478c139
Rework headings hierarchy
...
Initial hierarchy:
- Available panel types
- FieldPanel
- StreamFieldPanel
- MultiFieldPanel
- InlinePanel
- FieldRowPanel
- HelpPanel
- PageChooserPanel
- ImageChooserPanel
- FormSubmissionsPanel
- DocumentChooserPanel
- SnippetChooserPanel
- Built-in Fields and Choosers
- Field Customisation
- Full-Width Input
- Titles
- Placeholder Text
- Required Fields
- Hiding Fields
- Inline Panels and Model Clusters
Revised Hierarcy:
- Panel types
- Built-in Fields and Choosers
- FieldPanel
- StreamFieldPanel
- MultiFieldPanel
- InlinePanel
- FieldRowPanel
- HelpPanel
- PageChooserPanel
- ImageChooserPanel
- FormSubmissionsPanel
- DocumentChooserPanel
- SnippetChooserPanel
- Field Customisation
- Full-Width Input
- Titles
- Placeholder Text
- Required Fields
- Hiding Fields
- Inline Panels and Model Clusters
2020-10-23 10:36:01 +01:00
David Bramwell
e28aa6b194
Document ModlelAdmin.prepopulated_fields
2020-10-19 21:36:05 +01:00
Karl Hobley
0efe4a75a5
[RFC 54] Internationalisation reference docs ( #6377 )
...
* Reference docs for internationalisation
* Update docs/reference/pages/model_reference.rst
Co-authored-by: Dan Braghis <dan@zerolab.org>
* Update docs/reference/pages/model_reference.rst
Co-authored-by: Dan Braghis <dan@zerolab.org>
* Update docs/reference/pages/model_reference.rst
Co-authored-by: Dan Braghis <dan@zerolab.org>
* Apply suggestions from code review
Co-authored-by: Dan Braghis <dan@zerolab.org>
* Add missing comma
* Apply suggestions from code review
Co-authored-by: Matt Westcott <matthew@torchbox.com>
Co-authored-by: Dan Braghis <dan@zerolab.org>
Co-authored-by: Matt Westcott <matthew@torchbox.com>
2020-10-19 18:40:58 +01:00
Matt Westcott
9fab50e87a
remove trailing whitespace
2020-10-19 18:11:12 +01:00
Jean Zombie
b5cfca31eb
Add example of updating a page within after_create_page ( #6373 )
...
This update intends to add the answer I got on my slack support request (https://wagtailcms.slack.com/archives/C81FGJR2S/p1599209092087000 ).
2020-10-19 18:01:49 +01:00
Karl Hobley
7f7f9b4de1
Make snippets action menu hookable
2020-10-14 14:41:22 +01:00
Karl Hobley
c170c50c78
Add view for converting aliases into regular pages
2020-10-08 10:24:58 +01:00
Karl Hobley
b5eddca28b
Synchronise alias page content when the source is updated
2020-10-08 10:24:58 +01:00
Karl Hobley
674fa8e27a
Add Page.create_alias method
2020-10-08 10:24:58 +01:00
Karl Hobley
17f63f0efc
Add alias_of field to Page
2020-10-08 10:24:58 +01:00
Matt Westcott
dd442a3990
remove trailing whitespace to placate doc8
2020-10-05 12:44:57 +01:00
meghanabhange
f1fbbcbc24
Add validation for file extension in AbstractDocument using WAGTAIL_DOCS_EXTENSIONS setting ( #6423 )
2020-10-05 12:26:00 +01:00
Karl Hobley
cf38b2457d
Put quotes around some inline code
2020-10-03 14:43:03 +01:00
Karl Hobley
39d931d77d
Javascript => JavaScript
2020-10-03 14:43:03 +01:00
Karl Hobley
6e5f89adf2
General spelling fixes
2020-10-03 14:43:03 +01:00
Karl Hobley
9195131738
Lint docs with doc8
2020-10-03 14:43:03 +01:00
Ameet Virdee
48a8af71e5
Add documentation for placeholder text in Field Panels
2020-10-01 08:06:43 +02:00
Matt Westcott
008b6c12c4
Update BaseLogEntry docs to reference user_display_name. Fixes #6418
2020-09-30 15:43:27 +01:00
Matt Westcott
8edf16e5ff
Serve PDFs inline in the browser
...
Fixes #1158
Add config options WAGTAILDOCS_CONTENT_TYPES and WAGTAILDOCS_INLINE_CONTENT_TYPES to determine the Content-Type and Content-Disposition headers returned for documents when using the Django serve view, and default to application/pdf being served inline.
2020-09-28 07:22:58 +10:00
Scott Cranfill
70bb9d934b
Support SVG icons in ModelAdmin menu items ( #6402 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2020-09-25 15:58:52 +01:00
Andy Babic
8fd5d66756
Add RoutablePage.render() helper method and update documentation
2020-09-01 22:24:08 +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
8542f5fe9c
Fix underline lengths to prevent Sphinx warnings
2020-08-07 17:23:42 +01:00
jacobtoppm
e85f16b500
Add a use case example for WAGTAIL_WORKFLOW_CANCEL_ON_PUBLISH=False
2020-08-07 17:10:24 +01:00
Karl Hobley
9ad14ea439
Add hooks for snippet listing buttons
2020-08-07 15:47:27 +01:00
Karl Hobley
9b02147d3e
Add hooks.register_temporarily for testing hooks
...
There's currently a number of places where we test hooks by registering
hook functions from test methods. These are never cleaned up so that
hook remains registered in future tests. This can cause issues with
tests not working consistently when you run a subset of the tests.
This adds a `register_temporarily` function to the hooks module. This
function can be used either as a decorator or a context manager. It'll
always remove the hook after the decorated function or with block exits,
even if it exits through an exception.
2020-08-07 15:47:04 +01:00
Karl Hobley
4bf28b502c
Fix docs for `construct_page_listing_buttons`
2020-07-31 11:14:48 +01:00
Karl Hobley
f3f932d2e5
Add before_{create,edit,delete}_snippet hooks
2020-07-30 08:08:40 +01:00
Matt Westcott
e0dc53d9ad
Remove versionadded/versionchanged notes for 2.9
2020-07-28 12:53:22 +01:00
Chris Contolini
4231d9ef11
Fix minor typo in TableBlock docs ( #6259 )
...
Also a small grammatical fix.
2020-07-28 07:14:05 -04:00
jacobtoppm
c79668929e
Update reference documentation, custom task guide, and release notes, and fix documentation build errors
2020-07-24 16:59:33 +01:00
jacobtoppm
85e4426948
Cancel ongoing workflows when a page is published, depending on the value of a new setting, WAGTAIL_WORKFLOW_CANCEL_ON_PUBLISH. Add a warning modal before publication if a workflow will be cancelled
2020-07-24 16:59:33 +01:00
Matt Westcott
bf53123309
Fix sphinx warnings from workflow / audit log documentation
2020-07-24 16:59:33 +01:00
Matt Westcott
6f85bca664
Use % formatting for new workflow / audit log translation strings
...
See #5548 - Transifex recognises % formatting, and will guard against translators introducing errors by attempting to translate the embedded variable names.
2020-07-24 16:59:33 +01:00
Matt Westcott
c8a8689cee
Document icon_name and classname for register_page_action_menu_item
2020-07-24 16:59:33 +01:00
Dan Braghis
f69287f6f4
Add documentation
2020-07-24 16:59:33 +01:00
jacobtoppm
df3a63c7a2
Add new page methods and updated workflow state methods
2020-07-24 16:59:33 +01:00
jacobtoppm
2037e8c089
Update images in documentation
2020-07-24 16:59:33 +01:00
jacobtoppm
8911bd30d7
Add workflow models to reference
2020-07-24 16:59:33 +01:00
jacobtoppm
bf168df9f9
Document workflow signals
2020-07-24 16:59:33 +01:00
jacobtoppm
c75a2a3549
Add workflow settings
2020-07-24 16:59:33 +01:00
Matt Westcott
e8d02091ee
Add warning about WAGTAILFORMS_HELP_TEXT_ALLOW_HTML
2020-07-20 10:36:41 +01:00
Matt Westcott
d9a41e7f24
Escape help text in form builder forms by default
...
This can be disabled with the setting WAGTAILFORMS_HELP_TEXT_ALLOW_HTML
2020-07-20 10:36:28 +01:00
Matt Westcott
78c9ef31d7
Typo fixes
2020-07-15 17:18:46 +01:00
Martin Sandström
c8f493c095
Add documentation for WAGTAIL_REDIRECTS_FILE_STORAGE setting ( #6114 )
2020-07-15 16:35:04 +01:00
Matt Westcott
9917d7d2e9
Additional documentation for next_url
2020-07-15 11:53:39 +10:00
Kevin
d75ab584c7
Fixing typos
2020-07-14 10:56:28 +01:00
Andy Babic
dd680ae4d4
Factor out content type fetching into a separate Page method, simplify the specific specific_class methods, and improve docstrings
2020-07-13 18:25:11 +01:00
Steven Wood
5611f5ef6c
Clarify origin of From address used in password reset emails ( #6219 )
2020-07-13 18:15:21 +01:00
Storm Heg
8c306910dd
Fix incorrect urls in the docs
2020-07-06 13:15:40 +01:00
Storm Heg
4076b9ef5e
Replace calls to django.conf.urls.url with django.urls.path or django.urls.re_path
2020-07-06 13:15:37 +01:00
Matt Westcott
e9e6a8d5e7
Add more detail to RoutablePageMixin example ( #6128 )
2020-06-25 16:57:58 +01:00
Gassan Gousseinov
a4e05f4538
I would like only add my own editor without to redefine a default one. ( #6118 )
2020-06-25 16:53:06 +01:00
Jean Zombie
9baf6ce62a
Update hooks.rst ( #6160 / #6161 )
...
This proposed update is in regard to Issue #6160
2020-06-25 14:54:16 +01:00
Tom Dyson
20b99d4386
Remove 'whitelist' from page reference docs ( #6153 )
2020-06-16 11:23:51 +01:00
Martin Sandström
301d1bc7f5
Add ability to import redirects from a file wagtail.contrib.redirects
...
* Add support for importing redirects via tsv, csv, xls and xlsx files
* Add import_redirects management command to redirects documentation
2020-06-07 11:20:39 +10:00
jacobtoppm
ead6c8b2a6
Add WAGTAIL_TIME_FORMAT to settings reference
2020-05-27 13:55:52 +01:00
GTpyro
147fda12fa
Update signals.rst for Python 3 compatibility
...
The send_to_slack example was not compatible with Python 3. Example is updated using the requests & json libraries (instead of urllib & urllib2)
2020-05-26 19:21:13 +02:00
Coen van der Kamp
a1a2c35c1c
Template render richtext without wrapper, add wagtail.contrib.legacy.richtext
...
* Add wagtail.contrib.legacy.richtext with tests & docs
* Make RichText.__html__ behave the same as template filter
* Resolves #1214
2020-05-21 07:53:31 +10:00
Karl Hobley
58f6aecfc7
Some cleanups in PostgreSQL search module ( #5953 )
...
* Separated logic for extracting indexable content
* Docs edits
* Readability improvements
* Simplify/deduplicate indexing code
* Simplify search code
Pulled in some code that will be included in a future Django release
(query.py)
* Reword a limitation
* Fix typo in docstring
* Raise a warning when Boost() is used in PostgreSQL search backend
* Add note mentioning that RawSearchQuery can be replaced in Django 3.1
* Add comment mentioning that we can replace query.py if Django PR merged
2020-05-18 15:54:31 +01:00
Kalob Taulien
b5f5ac10db
Add export_filename option to modeladmin
...
Merge pull request #6031 from wagtail/reports-filename
2020-05-15 10:04:57 -06:00
jacobtoppm
cc676c4c9e
Add export_filename option to modeladmin
2020-05-14 15:50:47 +01:00
Kalob Taulien
f757324039
Add Snippet hooks (after_edit_snippet, after_create_snippet and after_delete_snippet)
2020-05-14 20:47:36 +10:00
Cameron Lamb
55476426db
Fix typo in ModelAdminGroup example
2020-05-14 20:37:34 +10:00
Brylie Christopher Oxley
ff37ad6ab9
Add 'add_redirect' static method to Redirect
...
* This method was inspired by a Lacey Williams Henschel (@williln) presentation at Wagtail Space US 2018, called 'What the Wagtail docs don't tell you'. https://www.youtube.com/watch?v=PCkxBNXWM64&t=1220s
* Add docs section reference/contrib/redirects
2020-05-10 18:48:33 +10:00
jacobtoppm
30c398c91a
Add purge_revisions management command
...
* Fix typo in publish_scheduled_pages dry run
* Add purge_revisions to docs
* Resolves #5192
2020-05-08 11:35:30 +10:00
LB (Ben Johnston)
9359b14326
fix sphinx warnings ( #6001 )
...
- use .add_css_file instead of .add_stylesheet in conf.py
- use .add_js_file instead of .add_javascript in conf.py
- fix duplicate clss references in pages model reference (for grouping of methods & attributes)
- rename wagtailspace.js to banner.js (may be used in the future for a generic banner)
2020-05-03 14:02:43 +02:00
Andy Babic
4846a3e801
Add get_page_url() method to BaseSetting
...
* adds a convenience `page_url` shortcut to improve how page URLs can be accessed from site settings in Django templates
2020-05-03 15:14:41 +10:00
Jonatas Baldin
a7f58821a7
Add publish & unpublish page hooks
...
* Add `before_unpublish_page` and `before_unpublish_page` hooks
* Add `before_publish_page` and `before_publish_page` hooks
* Resolves #4590
2020-05-03 14:18:13 +10:00
danbentley
1156182283
Add Page.context_object_name ( #5999 )
...
Page.context_object_name can be used to define a more meaningful name
for the page variable in the template.
If defined, the default `page` and `self` are still available for use in
shared templates.
Resolves #5213
2020-05-01 20:01:02 +02:00
Andy Babic
3fe8775024
Add pre_page_move and post_page_move signals
...
* Documentation for pre_page_move and post_page_move signals
* Resolves #2728
2020-04-28 20:26:40 +10:00
Haydn Greatnews
165c5c0ce5
Add date & datetime formatting to AbstractEmailForm + split out render_email method
...
* Rewrite AbstractEmailForm render to use cleaned_data
* Add date time formatting to AbstractEmailForm's render method according to Django settings SHORT_DATE_FORMAT and
SHORT_DATETIME_FORMAT
* Previously it was iterating over `form` which left no place to remove
data from the submission without removing the field from the form (which
is inadvisable, as discussed on #4313 )
* Preserve order of fields in form emails using cleaned data
* Add a test for consistent date rendering in email forms
* update form customisation examples and add note about date / time formatting in email form usage (docs)
* resolves #3733
* resolves #4313
2020-04-26 20:25:48 +10:00
Ascani Carlo
5f3c12682f
Redirect to previous url when deleting/copying/unpublish a page
...
* modify register_page_listing_buttons & register_page_listing_more_buttons to handle next_url kwarg
* resolves #3010
2020-04-26 18:24:13 +10:00
Matt Westcott
ceb4270e01
Remove versionadded/versionchanged notes for 2.8
2020-04-22 13:54:09 +01:00
Andy Babic
db8ab0875d
Update BaseSetting to make it easier to utilise QuerySet.select_related() for more complex settings which reference related objects (such as pages)
2020-04-03 22:01:08 +01:00
Andy Babic
18118f54b6
Update docs
2020-04-03 21:28:13 +01:00
Mohamed Feddad
bb2e460c0b
Replace deprecated ugettext, ungettext with gettext and ngettext. ( #5907 )
2020-04-02 17:15:26 +01:00
Matt Westcott
3f86de27e0
Document AdminOnlyMenuItem in hooks documentation
2020-03-19 17:57:52 +00:00
jacobtoppm
12d5edcef6
Add heading option to panels reference
2020-03-19 16:10:30 +00:00
jacobtoppm
b3e5278a1b
Remove spreadsheet export setting, and allow a user to select format via a dropdown instead
2020-03-13 17:33:22 +00:00
jacobtoppm
fbead4549b
Add documentation for spreadsheet format setting and new modeladmin features
2020-03-13 17:33:20 +00:00
Andy Chosak
17e09fee76
Fix quotes in ModelAdmin documentation
...
Building the docs currently generates a warning:
wagtail/docs/reference/contrib/modeladmin/indexview.rst:423: WARNING: Could not lex literal_block as "python". Highlighting skipped.
This is due to use of backticks instead of single quotes on this page:
https://docs.wagtail.io/en/v2.8/reference/contrib/modeladmin/indexview.html#modeladmin-get-queryset
In practice this doesn't seem to actually break highlighting, but it's still good to fix.
2020-03-04 13:21:53 -05:00
Matt Westcott
09a2ccf8cc
Documentation for custom tag models
2020-02-26 14:10:21 +00:00
dt
a6fb0762a8
Mention options for schema in sitemap
...
Add clear way to change schema in `sitemap.xml` to https on `sitemap`
documentation page
2020-02-25 21:33:21 +00:00
Matt Westcott
4950158e46
Remove remaining references to request.site
2020-02-17 12:06:19 +00:00
Matt Westcott
f34891fbd3
Update docs to cover wagtail_site tag, find_for_request and deprecation of SiteMiddleware
2020-02-17 12:06:18 +00:00
Matt Westcott
5eec4d954e
Deprecate SiteMiddleware ( #3834 , #5332 , #5673 )
...
Squashed commit of the following:
commit 6ff78d0271ae9bb8be20edc77acc046b7ecd1190
Merge: cbb5575
b7872e3
Author: Matt Westcott <matt@west.co.tt>
Date: Fri Jan 24 10:41:00 2020 +0000
Merge branch 'master' into sitemiddleware-rebase-2
Conflicts:
docs/reference/settings.rst
wagtail/api/v2/endpoints.py
wagtail/api/v2/filters.py
wagtail/api/v2/serializers.py
commit cbb5575fd8
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date: Sun Nov 3 02:30:00 2019 +0100
Update branch, resolve conflicts, clean up
commit 6188742cfe
Merge: 4b4dee6
1c1341e
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date: Sun Nov 3 01:48:21 2019 +0100
Resolve merge conflicts
commit 4b4dee6c47
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date: Sun Nov 3 01:42:37 2019 +0100
Temporarily add Pipfile and yarn file
commit 540dff380b
Merge: 4a93424
0d2442f
Author: timothy@bttrcode <timothy@bttrcode.nl>
Date: Fri Sep 27 20:22:00 2019 +0200
Merge branch 'master' of https://github.com/aritas1/wagtail into aritasmaster
commit 0d2442fc1f
Author: Daniel <mail@aritas.de>
Date: Wed Jun 26 03:01:44 2019 +0200
clean tests and add ALLOWED_HOSTS globally
commit b7e6b8e655
Author: Daniel <mail@aritas.de>
Date: Wed Jun 26 03:00:07 2019 +0200
change context processor to be lazy
commit b16250fce9
Author: Daniel <mail@aritas.de>
Date: Tue May 28 21:37:05 2019 +0200
update SiteMiddleware documentation
commit 4be243f64d
Author: Daniel <mail@aritas.de>
Date: Tue May 28 20:52:08 2019 +0200
fix linting
commit 33151817a0
Author: Daniel <mail@aritas.de>
Date: Tue May 28 19:11:47 2019 +0200
add wagtail_site template tag
commit 38b304105a
Author: Daniel <mail@aritas.de>
Date: Tue May 28 16:19:22 2019 +0200
update tests for deprecated SiteMiddleware
commit f745aae9d0
Author: Daniel <mail@aritas.de>
Date: Tue May 28 16:11:58 2019 +0200
change Site finding mechanism to be independent of deprecated SiteMiddleware
2020-02-17 12:06:18 +00:00
Samir Shah
dd4a04f843
Skip field validation when unpublishing pages.
2020-02-16 21:05:51 +00:00
Karl Hobley
2e23ef4ee4
Author specific locking docs changes ( #5771 )
...
* Add to Dashboard docs
* Replace Dashboard image to show locked pages
* Add further explanatory text to Dashboard
* Improve image readability, add missing bracket
Co-authored-by: jacobtoppm <55137073+jacobtoppm@users.noreply.github.com>
2020-01-28 09:07:01 +00:00
Matt Westcott
d2080ff892
Update docs to cover responsive HTML being disabled by default
2020-01-20 18:57:51 +00:00
Matt Westcott
3f27014a86
Merge branch 'author-specific-locking' of https://github.com/jacobtoppm/wagtail into kaedroho-author-specific-locking
2020-01-08 15:05:59 +00:00
Matt Westcott
ee8eda8353
Merge branch 'author-specific-locking' of https://github.com/kaedroho/wagtail into kaedroho-author-specific-locking
2020-01-08 15:02:19 +00:00
jacobtm
7421590dc7
Document reports submenu hooks
2020-01-02 09:47:52 +00:00
jacobtm
99cb3154cc
Correct model reference for page, page cannot be edited when locked is True, rather than False
2020-01-02 09:41:42 +00:00
Dan Swain
749d0172e5
Documentation - include {{ block.super }} example in modelAdmin
2019-12-02 09:43:33 +10:00
Dan Swain
5a8c4edba5
Documentation - add StreamFieldPanel to available panel types
2019-12-01 19:13:11 +10:00
Karl Hobley
5f68627950
Merge branch 'master' into author-specific-locking
2019-11-26 15:55:49 +00:00
Karl Hobley
23145382e9
Move settings reference into separate doc
2019-11-20 17:39:46 +00:00
Tom Usher
644ee86e00
Add support for cloudflare API tokens ( #5688 )
2019-11-19 14:47:52 +00:00
Martey Dodoo
229103ff2e
Update links in documentation. ( #5689 )
...
Use HTTPS links instead of non-secure HTTP links wherever possible in
documentation.
2019-11-08 09:15:01 +00:00
Matt Westcott
8577cc2d02
Remove old versionadded tags in the docs
2019-10-29 08:56:12 +00:00
Karl Hobley
ed32bc8444
fixup! Record time and user when a page is locked
2019-10-28 11:16:54 +00:00
Karl Hobley
67213d7286
Record time and user when a page is locked
2019-10-16 14:26:04 +01:00
Andreas Bernacca
3fd3d97850
Add model to PersonAdmin in documentation
2019-10-16 10:54:05 +01:00
Matt Westcott
34b3f0c0fc
Recommend signals rather than hooks for model-level customisations
...
As per #5620 - signals are often overlooked as a way of customising model-level behaviour. We should recommend them over admin hooks where possible, as they aren't reliant on users taking one particular path through the admin - for example, an 'add document' signal will be triggered regardless of whether a document is created through the single uploader, multiple uploader, chooser model or a scripted task, whereas a hook would not catch all of these cases.
2019-10-15 13:52:32 +01:00
Matt Westcott
a0035c33c0
Add example of template rendering to TableBlock docs
...
Addresses #5540
2019-10-12 09:29:10 +10:00
Matt Westcott
3557c954c0
Clarify that menu item order attribute is ignored in construct_page_action_menu
2019-10-11 12:17:52 +01:00
Matt Westcott
6de06b6d04
Update construct_page_action_menu example
...
Now avoids redefining the whole list, and reflects the fact that the first (rather than last) item is picked as the default.
2019-10-11 12:11:09 +01:00
Rahmi Pruitt
fe2f8644fa
Allow default item in action menu to be overridden with construct_page_action_menu hook
...
Fixes #5438
2019-10-11 12:11:08 +01:00
Matt Westcott
76d72a36c3
Documentation tweaks for WAGTAILDOCS_SERVE_METHOD
...
As suggested by @chosak - https://github.com/wagtail/wagtail/pull/5296#discussion_r324252497 , https://github.com/wagtail/wagtail/pull/5296#discussion_r324257167
2019-09-21 18:53:48 +01:00
Zac Connelly
a19571db7a
update docs for TabbedInterface ( #5374 )
2019-08-29 11:23:13 +01:00
Matt Westcott
227221f7fb
Update docs with new locations of wagtail.admin.utils definitions
2019-08-19 18:58:56 +02:00
rjpruitt16
f7ff6d39c4
Add caption field to TableBlock
...
* Create caption field added to table block widget
Caption allows for users users with screen readers to be
able to understand the contents of a table.
* Fixed bugs in javascript and typos
* Updated documentation and change log
* Fixed table caption bug and requested pr edits
* Fixed table caption bug and request pr edits
* Removed changes in changelog.txt
* Fixed bug and requested PR edits
2019-08-14 22:17:25 +02:00
Michael van Tellingen
9cd2fc2c82
Add a `construct_page_listing_buttons` hook
...
This hook mimics the functiolity provided by `construct_page_action_menu`
in that it constructs the final list of buttons to be shown in the wagtail
admin interface. This means that within this function button's can be
removed, added or re-ordered.
See #4925
2019-07-21 17:40:26 +10:00
jordan_bauer
0dac8f0764
added construction_hook_name to settings_menu ( #5384 )
2019-06-25 12:04:53 +01:00
Karl Hobley
d008cc7e21
Implement Page.with_content_json and add to docs ( fixes #5199 )
2019-06-20 16:24:04 +01:00
kevinhowbrook
e8c64e593d
Missing class imports
2019-06-11 11:53:19 +01:00
Andy Babic
13b485a2a9
Fix sphinx errors
2019-06-08 18:27:42 +01:00
Seb
b839bd65bb
Add support for custom search handler classes to ModelAdmin's IndexView
...
Author: Seb <seb@takeflight.com.au>
Date: Sun Apr 7 12:34:00 2019 +1000
2019-06-08 17:57:24 +01:00
LB (Ben Johnston)
ddbbbe4417
Revise wording of static resources usage in modeladmin documentation
...
Small wording revision
Merge pull request #5295 from DanielSwain/patch-35
2019-05-23 07:25:12 +10:00
Kalob Taulien
9489cb0758
Added ButtonHelper example code
2019-05-23 07:18:50 +10:00
DanAtShenTech
ad7af7e191
Small wording revision
2019-05-13 14:09:18 -04:00
Adam
22e9e71ca7
Updated Page Chooser Panel ForeignKey
...
Needs a related_name
2019-05-10 14:41:09 +01:00
David Beitey
602cd50d18
Add Django models import to Site Settings docs
2019-05-03 17:11:27 +01:00
Samuel Mendes
352fa37dda
Add documentation on supporting cell alignment
2019-05-03 13:51:51 +01:00
Samuel Mendes
ba78df06bc
Upgrade handsontable to 6.2.2 and documentation
2019-05-03 13:36:51 +01:00
DanAtShenTech
751c666037
Grammar fixes
2019-04-12 16:24:20 +01:00
Nick Smith
21fc3d7679
Fix hooks documentation typo
2019-04-11 10:27:54 +01:00
DanAtShenTech
f4d3025022
Wording fixes to column/row header descriptions
...
Also small grammar updates.
2019-04-03 20:22:29 +01:00
LB Johnston
46c024ba06
add name attribute to all derived classes of ActionMenuItem
2019-03-29 11:48:15 +00:00
Wesley van Lee
c831d434ab
Added an option to the page model to be able to define the amount of subpages underneath a specific parent page
2019-03-15 18:14:05 +01:00
Andy Babic
b2eee20e1b
Move reversing_urls.rst into a subdirectory with it's own index, and include that index in the modeladmin docs' main toctree
2019-03-14 09:48:02 +01:00
LB Johnston
fc21729a24
add docs with instructions on how to generate urls for modeladmin
2019-03-13 07:41:34 +10:00
Thomas Kremmel
4e8f197a9d
allow panels & edit_handler to be defined on ModelAdmin ( #4900 )
2019-03-06 12:26:20 +00:00
Matt Westcott
61e1e4c2f9
Add 'wagtail_update_index' as an alias for the 'update_index' command ( #5009 )
...
Fixes #2447
2019-03-01 11:01:41 +00:00
Matt Westcott
34d7efe4e3
Add note to clarify that construct_homepage_panels should modify the ist in place
2019-02-27 14:56:40 +00:00
Neil Lyons
f10c5cab58
Update docs for construct_homepage_panels hook ( #5109 )
...
`construct_homepage_panels` hook doesn't need a return statement.
[Looking at the code](https://github.com/wagtail/wagtail/blob/master/wagtail/admin/views/home.py#L101-L102 ), the user doesn't need to return a list, they need to mutate the list passed in.
2019-02-27 14:50:01 +00:00
Matt Collins
37a472834a
Update legacy wagtail.wagtailadmin paths ( #5090 )
...
Update legacy wagtail.wagtailadmin paths to wagtail.admin
2019-02-19 10:49:15 +00:00
DanAtShenTech
56f29a0825
Clarify explanation of ParentalKey within InlinePanel ( #5070 )
...
Make it clear that the relationship to relate a cluster of objects to a page is called ParentalKey.
2019-02-13 16:32:22 +00:00
Vladimir Knobel
a0d6dbb5f4
Update primer.rst ( #5068 )
...
path to overriding template doesn't match model name
2019-02-13 15:16:44 +00:00
DanAtShenTech
dbb7ec77b3
Fix index_view_class in primer.rst
...
Fix the "index_view_class=" reference. Small grammar fixes.
2019-02-08 17:32:57 +00:00
DanAtShenTech
f1e3e2e379
Update primer.rst ( #5061 )
...
Small wording clarifications.
2019-02-08 17:26:26 +00:00
DanAtShenTech
c9be245b0f
Update primer.rst ( #5062 )
...
Small grammar fixes
2019-02-08 17:02:30 +00:00
ed@sharpertool.com
f39f018ebf
Update hooks.rst ( #5044 )
...
Document and Image fields changed from `uploaded_by` to `uploaded_by_user`
2019-01-31 12:22:25 +00:00
Matthew Linares
a0b4efd414
Recipe: automatic redirect creation on url edit ( #5002 )
2019-01-24 14:06:44 +00:00
Matt Westcott
d731ea6c9f
Add missing null=True and imports to modeladmin example code
2019-01-10 10:59:05 +00:00
Alex Gleason
e5f9c122ab
Use better examples in ModelAdmin docs, add info about FieldPanels
2018-11-30 13:11:53 +00:00
Matt Westcott
b81e5c6b85
avoid referring to an internal function name in hook docs
2018-11-30 11:29:21 +00:00
Maylon Pedroso
f34bda64ea
Add hooks for page move actions
2018-11-30 10:50:42 +00:00
Matt Westcott
cb8148ede2
Support media definitions on action menu items
2018-11-22 11:17:25 +00:00
Matt Westcott
b48566e735
Move action menu components to a new wagtail.admin.action_menu module
2018-11-22 11:16:59 +00:00
Matt Westcott
2a477c8e79
Add construct_page_action_menu hook
2018-11-22 11:14:01 +00:00
Matt Westcott
6adf7c8423
Add register_page_action_menu_item hook
2018-11-22 11:14:01 +00:00
Sergey Fedoseev
47465197a9
Use intersphinx for Django references when possible. ( #4896 )
2018-11-14 11:48:32 +00:00
Sergey Fedoseev
8f8faf3c60
Fixed some formatting in 'Customising IndexView' doc. ( #4877 )
...
* Fixed some formatting in 'Customising IndexView' doc.
* Make coverage omit docs/conf.py.
2018-10-30 12:29:11 +00:00
Sergey Fedoseev
29c8ad6637
Fix reference in ModelAdmin.ordering docs.
2018-10-30 12:23:17 +00:00
Matt Westcott
aaa0953d05
Document the Dockerfile in the project template ( #4853 )
2018-10-27 15:18:25 +02:00
Dan Braghis
3b1dc5be86
Add Page max_count
2018-10-27 15:13:16 +03:00
Matt Westcott
4965d85e72
Update hook examples to use django.templatetags.static
...
django.contrib.staticfiles.templatetags.staticfiles is deprecated as of Django 2.0
2018-10-18 08:49:15 +01:00
Jorge Barata
8161d7c14c
Fix get_permission_helper_class documentation typo
2018-10-16 11:29:05 +01:00
Matt Westcott
b2b42faf14
Fix note about update_index not being required for the db backend
2018-09-21 10:59:52 +01:00
Matt Westcott
6454e500ab
Fix module path (wagtailforms.models should be wagtail.contrib.forms.models)
2018-09-21 10:53:51 +01:00
Michael van Tellingen
bad95cf37c
Optimize the querycount for the sitemap.xml page
...
By optionally passing the request object to Page.get_sitemap_urls() it
will now use the cached site root on the request object instead of
retrieving it for each call. This cuts the number of queries required
for a sitemap roughly in half.
2018-07-10 16:53:19 +01:00
Matt Westcott
8d786c3534
Reference the `get_url` method in Page model reference docs
...
Fixes #4424 . As of #3354 , `get_url` is the preferred way of obtaining a page URL, rather than the `.url` property;
.url is just a wrapper around get_url (which meant that the docstring for `get_url` was erroneously being picked up).
2018-05-18 15:26:06 +01:00
DanAtShenTech
53881ebd0b
Small wording, spelling, grammar edits ( #4543 )
2018-05-18 14:59:06 +01:00
DanAtShenTech
f58e85fa0f
Fix wording
2018-05-18 14:55:29 +01:00
Victor Miti
c38b172793
updated Django Docs Links to point to *docs.djangoproject.com/en/stable/*
2018-05-18 14:43:42 +01:00
Matt Westcott
31a1126123
Remove construct_whitelister_element_rules hook
2018-05-18 11:43:28 +01:00
Matt Westcott
3fc9ed5119
Remove old versionadded/versionchanged notes
2018-05-18 11:43:28 +01:00
Matt Westcott
a9a69bedf5
Move HelpPanel documentation to avoid redefinition of wagtail.admin.edit_handlers module
2018-05-15 14:57:07 +01:00
Matt Westcott
5ce14841d8
Remove ancient versionchanged notes
2018-05-15 14:54:41 +01:00
Andy Babic
d0670da61b
Fix minor typo in modeladmin docs ( #4509 )
...
add_to_setings_menu -> add_to_settings_menu
2018-05-02 18:11:01 +03:00
pyMan
b3fa09b95e
Improved 'purge_page_from_cache' to purge the url for any managed language
2018-04-18 11:28:23 +01:00
DanAtShenTech
8c686b6a6b
Typo
2018-04-11 13:22:45 +01:00
DanAtShenTech
950e77d2aa
Wording change requested by Matthew Westcott
2018-04-11 13:22:45 +01:00
DanAtShenTech
2f43c10e6c
Wording change to have this feature appear in search results
...
Searching the docs for the phrases "add django model to wagtail admin" and "add model to wagtail admin" (without the quotes) did not even yield this crucial page as one of the results. The proposed wording puts the main idea of being able to show/edit ANY model via the Wagtail admin at the top of the document and includes wording to, hopefully, have this page appear at the top for anyone searching for how to implement this functionality.
2018-04-11 13:22:44 +01:00
Matt Westcott
af7cdb4354
another typo fix
2018-04-06 16:19:49 +01:00
DanAtShenTech
a179d0c331
Fix typos
...
Conflicts:
docs/reference/contrib/modeladmin/primer.rst
2018-04-06 16:19:32 +01:00
Karl Hobley
f608c67eb1
Fix capitalisation of names
2018-04-05 12:13:05 +01:00
Karl Hobley
bf3e994505
Fix capitalisation of QuerySet
2018-04-05 12:13:05 +01:00
Karl Hobley
a70b8130a5
Add quotes around code
2018-04-05 12:13:05 +01:00
Karl Hobley
a9b4b09152
Fix spelling mistakes in documentation
2018-04-05 12:13:05 +01:00
Bertrand Bordage
0fcd6d8cc1
Improves #4421 documentation example.
2018-03-29 21:01:23 +02:00
Michael van Tellingen
c5d21a76d9
Add a new hook 'register_account_menu_item' ( #4421 )
...
* Add a new hook 'register_account_menu_item'
This new hook makes it easier for third party apps to add new buttons on
the 'my account' page in the Wagtail admin. Existing buttons are
converted to the new hooks to make the code consistent.
* Add documentation for the new register_account_menu_item hook
2018-03-29 20:48:23 +02:00
Dave Bell
b2ef833915
allow chunk_size to be set in update_index
2018-03-29 17:49:43 +02:00
Kevin Chung
d188576af8
Adds a new HelpPanel ( #4374 )
2018-03-15 16:46:34 +01:00
Matt Westcott
cde31260d8
add documentation for custom send_mail method
2018-02-26 19:06:18 +00:00
Loic Teixeira
f6bcfbf31e
Update paths in documentation
2018-02-23 11:53:31 +00:00
LB (Ben Johnston)
39d5672c9c
Fix modeladmin documentation typo ( #4251 )
...
Fix incorrect reference to a method name from the previous example.
2018-02-08 10:53:36 +00:00
Mads Jensen
b30c722728
Used Python 3 super() syntax also in documentation. ( #4246 )
...
This disregards the release notes for earlier releases and only deals
with current documentation.
2018-02-07 10:11:27 +00:00
LB (Ben Johnston)
c85e4a3ff0
add note for setting menu default globally ( #4244 )
2018-02-06 14:10:45 +00:00
Patrick Woods
c9704caf17
Documentation edits
2018-01-15 22:58:00 +00:00
Patrick Woods
3f0972507b
Initial scheduled publishing documentation.
2018-01-15 22:58:00 +00:00
LB
3eac584c7c
Make FormBuilder more easy to extend
2018-01-10 19:04:42 +10:00
Johan Arensman
815cb6e405
Use class based views instead of function views
...
Changes `index`, `delete_submissions` and `list_submissions`.
Adjusted view tests to properly test the new class based structure.
remove get_field_ordering from FormPage model - now on view
2018-01-08 16:27:09 +10:00
Matt Westcott
b9a548f424
Update documentation for rich text element whitelisting
2018-01-05 16:15:59 +00:00
kevin howbrook
0b44392c3d
Add missing import to tagging docs ( #4158 )
2017-12-29 17:54:38 +01:00
LB
70eb2b6ae3
add on_delete argument to ParentalKey & ForeignKey
2017-12-15 10:33:09 +00:00
LB (Ben Johnston)
e20fbcc3cd
Update register_page_listing_more_buttons example
...
Use Button instead of PageListingButton in **register_page_listing_more_buttons** section.
2017-12-14 12:37:16 +00:00
Philipp Bosch
a9f51a09c4
[Docs] Fix imports in "Buttons with dropdown lists" hooks example
2017-12-05 00:12:06 +00:00
Matt Westcott
9610c2d3af
Make InlinePanel heading independent of label. Original commit by @Adrian-Turjak
2017-11-30 12:08:19 +00:00
LB
bc0923b356
Add note that form_submission is passed to landing page context
2017-11-28 22:01:37 +08:00
LB
afee487d52
Documentation example for render_landing_page
2017-11-28 22:01:18 +08:00
Mads Jensen
ffd93a0d28
Don't inherit from object
2017-11-27 10:06:03 +00:00
Karl Hobley
58ea7f824a
Renamed wagtail.contrib.wagtailsitemaps to wagtail.contrib.sitemaps
2017-11-26 22:43:47 +00:00
Karl Hobley
fd8f642fb6
Renamed wagtail.contrib.wagtailsearchpromotions to
...
wagtail.contrib.search_promotions
Conflicts:
wagtail/contrib/search_promotions/forms.py
wagtail/contrib/search_promotions/templatetags/wagtailsearchpromotions_tags.py
wagtail/contrib/search_promotions/wagtail_hooks.py
2017-11-26 22:43:47 +00:00
Karl Hobley
394274b0a1
Renamed wagtail.contrib.wagtailroutablepage to
...
wagtail.contrib.routable_page
Conflicts:
docs/reference/contrib/routablepage.rst
2017-11-26 22:43:47 +00:00
Karl Hobley
7f1b60abca
Renamed wagtail.contrib.wagtailfrontendcache to
...
wagtail.contrib.frontend_cache
Conflicts:
docs/reference/contrib/frontendcache.rst
wagtail/api/v2/signal_handlers.py
wagtail/contrib/frontend_cache/signal_handlers.py
2017-11-26 22:43:47 +00:00
Karl Hobley
f29ce6c1f9
Renamed wagtail.wagtailforms to wagtail.contrib.forms
...
Conflicts:
docs/reference/contrib/forms/customisation.rst
docs/reference/contrib/forms/index.rst
wagtail/contrib/forms/tests/test_forms.py
wagtail/contrib/forms/tests/test_models.py
wagtail/contrib/forms/tests/test_views.py
wagtail/contrib/forms/views.py
wagtail/contrib/forms/wagtail_hooks.py
wagtail/tests/settings.py
wagtail/tests/testapp/models.py
2017-11-26 22:43:47 +00:00
Karl Hobley
1ecf48fb3f
Rename wagtail.wagtailsnippets to wagtail.snippets
...
Conflicts:
docs/advanced_topics/settings.rst
docs/getting_started/integrating_into_django.rst
docs/topics/pages.rst
docs/topics/snippets.rst
gulpfile.js/config.js
wagtail/contrib/wagtailstyleguide/views.py
wagtail/project_template/project_name/settings/base.py
wagtail/snippets/tests.py
wagtail/snippets/views/chooser.py
wagtail/snippets/views/snippets.py
wagtail/snippets/wagtail_hooks.py
wagtail/tests/settings.py
wagtail/tests/snippets/models.py
wagtail/tests/testapp/models.py
2017-11-26 22:43:47 +00:00
Karl Hobley
19730bea53
Renamed wagtail.wagtailsearch to wagtail.search
...
Conflicts:
docs/advanced_topics/settings.rst
docs/getting_started/integrating_into_django.rst
docs/getting_started/tutorial.rst
docs/topics/pages.rst
docs/topics/search/searching.rst
tox.ini
wagtail/admin/tests/test_pages_views.py
wagtail/admin/views/mixins.py
wagtail/api/v2/filters.py
wagtail/contrib/wagtailsearchpromotions/forms.py
wagtail/contrib/wagtailsearchpromotions/views.py
wagtail/documents/models.py
wagtail/documents/views/chooser.py
wagtail/documents/views/documents.py
wagtail/documents/views/multiple.py
wagtail/images/migrations/0001_initial.py
wagtail/images/models.py
wagtail/images/views/chooser.py
wagtail/images/views/images.py
wagtail/images/views/multiple.py
wagtail/project_template/project_name/settings/base.py
wagtail/project_template/search/views.py
wagtail/search/tests/test_frontend.py
wagtail/search/tests/test_index_functions.py
wagtail/search/views/frontend.py
wagtail/search/views/queries.py
wagtail/search/wagtail_hooks.py
wagtail/tests/demosite/models.py
wagtail/tests/modeladmintest/models.py
wagtail/tests/non_root_urls.py
wagtail/tests/settings.py
wagtail/tests/snippets/models.py
wagtail/tests/testapp/migrations/0001_initial.py
wagtail/tests/testapp/migrations/0020_customdocument.py
wagtail/tests/testapp/models.py
wagtail/tests/urls.py
wagtail/wagtailsnippets/views/chooser.py
wagtail/wagtailsnippets/views/snippets.py
2017-11-26 22:43:47 +00:00
Karl Hobley
bf0f3e02ba
Rename wagtail.wagtailimages to wagtail.images
...
Conflicts:
docs/advanced_topics/api/v2/configuration.rst
docs/advanced_topics/jinja2.rst
docs/advanced_topics/settings.rst
docs/getting_started/integrating_into_django.rst
docs/getting_started/tutorial.rst
docs/topics/pages.rst
docs/topics/streamfield.rst
gulpfile.js/config.js
tox.ini
wagtail/admin/tests/test_compare.py
wagtail/admin/tests/test_edit_handlers.py
wagtail/api/v2/signal_handlers.py
wagtail/contrib/wagtailstyleguide/views.py
wagtail/core/tests/test_streamfield.py
wagtail/documents/tests/test_models.py
wagtail/images/models.py
wagtail/images/permissions.py
wagtail/images/tests/test_admin_views.py
wagtail/images/tests/test_image_operations.py
wagtail/images/tests/test_models.py
wagtail/images/tests/test_signal_handlers.py
wagtail/images/views/chooser.py
wagtail/images/views/images.py
wagtail/images/views/multiple.py
wagtail/images/wagtail_hooks.py
wagtail/images/widgets.py
wagtail/project_template/project_name/settings/base.py
wagtail/tests/demosite/models.py
wagtail/tests/non_root_urls.py
wagtail/tests/settings.py
wagtail/tests/testapp/migrations/0001_initial.py
wagtail/tests/testapp/migrations/0008_inlinestreampage_inlinestreampagesection.py
wagtail/tests/testapp/migrations/0009_defaultstreampage.py
wagtail/tests/urls.py
2017-11-26 22:43:47 +00:00
Karl Hobley
78b1372cd4
Rename wagtail.wagtaildocs to wagtail.documents
...
Conflicts:
docs/advanced_topics/i18n/index.rst
docs/advanced_topics/settings.rst
docs/getting_started/integrating_into_django.rst
gulpfile.js/config.js
wagtail/admin/tests/test_collections_views.py
wagtail/api/v2/signal_handlers.py
wagtail/contrib/wagtailstyleguide/views.py
wagtail/core/tests/test_collection_permission_policies.py
wagtail/documents/permissions.py
wagtail/documents/tests/test_admin_views.py
wagtail/documents/tests/test_collection_privacy.py
wagtail/documents/tests/test_models.py
wagtail/documents/views/chooser.py
wagtail/documents/views/documents.py
wagtail/documents/views/serve.py
wagtail/documents/wagtail_hooks.py
wagtail/documents/widgets.py
wagtail/project_template/project_name/urls.py
wagtail/tests/demosite/models.py
wagtail/tests/non_root_urls.py
wagtail/tests/settings.py
wagtail/tests/testapp/models.py
wagtail/tests/urls.py
2017-11-26 22:43:47 +00:00
Karl Hobley
062d05189b
Rename wagtail.wagtailadmin to wagtail.admin
...
Conflicts:
docs/advanced_topics/customisation/admin_templates.rst
docs/advanced_topics/customisation/page_editing_interface.rst
docs/advanced_topics/i18n/duplicate_tree.rst
docs/advanced_topics/jinja2.rst
docs/advanced_topics/settings.rst
docs/getting_started/integrating_into_django.rst
docs/getting_started/tutorial.rst
docs/reference/hooks.rst
docs/reference/pages/panels.rst
docs/topics/pages.rst
docs/topics/streamfield.rst
wagtail/admin/blocks.py
wagtail/admin/checks.py
wagtail/admin/edit_handlers.py
wagtail/admin/forms.py
wagtail/admin/rich_text.py
wagtail/admin/search.py
wagtail/admin/site_summary.py
wagtail/admin/templatetags/wagtailadmin_tags.py
wagtail/admin/tests/test_admin_search.py
wagtail/admin/tests/test_buttons_hooks.py
wagtail/admin/tests/test_compare.py
wagtail/admin/tests/test_edit_handlers.py
wagtail/admin/tests/test_page_chooser.py
wagtail/admin/tests/test_pages_views.py
wagtail/admin/tests/test_rich_text.py
wagtail/admin/tests/test_widgets.py
wagtail/admin/tests/tests.py
wagtail/admin/urls/__init__.py
wagtail/admin/views/account.py
wagtail/admin/views/chooser.py
wagtail/admin/views/collection_privacy.py
wagtail/admin/views/collections.py
wagtail/admin/views/home.py
wagtail/admin/views/page_privacy.py
wagtail/admin/viewsets/model.py
wagtail/admin/wagtail_hooks.py
wagtail/admin/widgets.py
wagtail/contrib/settings/registry.py
wagtail/contrib/wagtailsearchpromotions/wagtail_hooks.py
wagtail/contrib/wagtailstyleguide/wagtail_hooks.py
wagtail/project_template/project_name/settings/base.py
wagtail/project_template/project_name/urls.py
wagtail/tests/non_root_urls.py
wagtail/tests/settings.py
wagtail/tests/snippets/models.py
wagtail/tests/testapp/models.py
wagtail/tests/testapp/wagtail_hooks.py
wagtail/tests/urls.py
wagtail/wagtaildocs/models.py
wagtail/wagtaildocs/views/chooser.py
wagtail/wagtaildocs/wagtail_hooks.py
wagtail/wagtailembeds/wagtail_hooks.py
wagtail/wagtailforms/models.py
wagtail/wagtailforms/tests/test_views.py
wagtail/wagtailforms/views.py
wagtail/wagtailforms/wagtail_hooks.py
wagtail/wagtailimages/models.py
wagtail/wagtailimages/views/chooser.py
wagtail/wagtailimages/wagtail_hooks.py
wagtail/wagtailredirects/forms.py
wagtail/wagtailredirects/wagtail_hooks.py
wagtail/wagtailsites/forms.py
wagtail/wagtailsites/views.py
wagtail/wagtailsites/wagtail_hooks.py
wagtail/wagtailsnippets/tests.py
wagtail/wagtailsnippets/wagtail_hooks.py
wagtail/wagtailusers/forms.py
wagtail/wagtailusers/views/groups.py
wagtail/wagtailusers/wagtail_hooks.py
2017-11-26 22:43:47 +00:00
Karl Hobley
4300e19da2
Rename wagtail.wagtailcore to wagtail.core
2017-11-26 22:43:47 +00:00
LB
48b6a1b067
add note about django-treebeard api
2017-11-12 18:13:23 +00:00
LB
cd924d0948
add docs for exclude_fields_in_copy
2017-11-10 11:02:55 +00:00
Matt Westcott
aebb69a2ba
Remove dead links to API v1 docs
2017-11-03 17:03:57 +00:00
Jonathan Carmack
7859627a6e
Added hooks for user for create, delete, and edit actions
2017-11-03 16:53:32 +00:00
Karl Hobley
bf7936ade2
Replace `django.core.urlresolvers` with `django.urls`
2017-11-01 16:22:46 +00:00
Karl Hobley
b350672585
Merge pull request #3934 from gasman/cleanup/remove-python2
...
Remove Python 2 fallback code
2017-10-26 14:41:43 +01:00
Karl Hobley
fa302c0853
Remove wagtail.contrib.wagtailapi
2017-10-25 16:49:17 +01:00
Karl Hobley
bd38525e5b
Merge branch 'master' into cleanup/remove-python2
2017-10-25 16:21:27 +01:00
Matt Westcott
60c26e5565
Remove note about Django 1.10 being required for postgres search backend
2017-10-25 16:15:02 +01:00
Matt Westcott
5f382d8784
Remove Python 2 references from docs
2017-10-13 12:24:42 +01:00
Matt Westcott
119d2334ac
Replace insert_editor_js hook example with a non-registerHalloPlugin one
...
Fixes #3839
2017-10-10 11:51:45 +01:00
Matt Westcott
de3f9550b4
Release note for #3824
2017-10-05 15:40:55 +01:00
Karl Hobley
48cfb8e790
Tweaks to the docs
2017-10-05 15:15:21 +01:00
Karl Hobley
0cb63c72c5
Implemented suggestions from @chosak
2017-10-05 15:15:20 +01:00
Karl Hobley
8dc425660b
Docs for batch cache invalidation
2017-10-05 15:15:20 +01:00
Matt Westcott
b0aedf02dc
Remove old versionadded annotations from the docs
2017-08-22 14:08:44 +01:00
Joe Cronyn
d56f1069ef
Updating to allow no limit max
2017-08-22 12:09:05 +01:00
Matt Westcott
b376da022f
Grammar nitpick ('By default' sounds more natural than 'Per default')
2017-08-11 09:58:44 +01:00
Andreas Nüßlein
39bca11283
added default index_route for RoutablePageMixin
...
RoutablePageMixin has a default index_route method that is decorated
with `@route(r'^$')`. This way, including RoutablePageMixin doesn't
force you to re-enable the default functionality you would expect from a
Page anyways.
index_route behaves exactly like a standard Wagtail Page.
To override the default behaviour, one can simply override the route by
decorating another function with r'^$'.
(as disussed in issue #2866 )
2017-08-11 09:58:44 +01:00
Matt Westcott
70aa876e55
Extra documentation / release note re the relationship between draft_title and get_admin_display_title
2017-08-03 12:05:52 +01:00
Eugene Morozov
7b55c5094f
Backslash is not necessary when multi-line expression is parenthesized.
2017-07-18 09:56:42 +03:00
Matt Westcott
049b15f3fe
Define a 'before_serve_document' hook
2017-06-16 14:50:47 +01:00
LB
18cb0245fc
allow default for show_in_menus
2017-06-09 12:50:39 +01:00
Matt Westcott
927770eaab
Release note / docs for #3608
2017-06-02 10:58:34 +01:00
Matt Westcott
2f2bfa0159
Make tagging example not rely on an unmentioned 'blogs' method - fixes #3602
2017-05-30 20:39:30 +01:00
iSar
411c117964
Fix typo in settings doc ( #3595 )
2017-05-15 09:12:16 +03:00
Sebastian
49d706b406
Update docs - run python manage.py migrate once
...
We have to run python manage.py migrate once, in order to create the necessary tables for the postgres search backend.
Otherwise we get an error, as the insert in the table is not possible.
2017-04-21 09:16:44 +01:00
Michael van Tellingen
7ad348ffa7
Minor documentation update for sitemaps
2017-04-19 13:40:43 +02:00
Michael van Tellingen
c6c2868c58
Update documentation related to the sitemaps
...
Since we now use regular Django sitemaps we can mostly just refer to the
Django documentation
Co-authored with @mikedingjan
2017-04-19 13:40:43 +02:00
Karl Hobley
0d1c277e85
Added versionadded tag to postgres search doc
2017-04-12 16:30:45 +01:00
Bertrand Bordage
e62d67bd73
Adds PostgreSQL search backend. ( #3515 )
...
* Adds PostgreSQL search backend.
* Isort nitpicks.
* Fixes PostgreSQL versions incompatibilities.
* Uses Django lru_cache instead of building our own.
* Fixes PostgreSQL search index on some empty vector & query cases.
* Never sets the PostgreSQL search vector to NULL.
* Simplification + removes caching on two fast enough functions.
* Rewrites stale entries deletion to use the ORM.
2017-04-12 16:16:16 +01:00
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
Matt Westcott
bdaf696cd2
Release note / docs for #2257
2016-06-10 14:26:30 +01:00
Andreas Nüßlein
8e6c9f555f
Update staticsitegen.rst ( #2647 )
...
added python3 hint for http.server
2016-05-30 18:28:48 +01:00
Alex Gleason
8d5d29c2f3
Rename table_block.fields to table_block.blocks
2016-05-18 15:51:54 +01:00
Brad Busenius
53dfe6f5de
Added documentation for table_block.
2016-05-11 15:16:06 +01:00
Karl Hobley
e72b25f61c
Make api_fields a list
...
All other model attribute settings in Wagtail use lists now. This commit changes the api_fields docs to use a list as well.
Both list and tuple work, but list is now the recommended option
2016-05-10 19:35:41 +03:00
Karl Hobley
9dcc12ac55
Fix a typo in model reference
2016-05-10 14:28:34 +01:00
Tim Heap
facd66cf82
Use `code-block:: python` for a code example in docs
2016-05-08 04:59:34 +02:00
Philipp Dieter
d247fe9bf6
Fix name of ForeignKey object
2016-05-08 04:50:37 +02:00
Tim Heap
b727ec4064
Add documentation on the base_form_class attribute
2016-05-03 14:00:21 +01:00
Robert Rollins
7523d7f57f
Removed all uses of STATIC_URL from code samples, replaced with static().
...
Concatinating with settings.STATIC_URL is no longer reccomended for creating
URLs to static resources, because it doesn't take the configured storage engine
into account. For example, a site using S3 to store its static files will need
static URLs that link out to S3, rather than relative URLs within the same
domain.
I replaced it with django.contrib.staticfiles.templatetags.staticfiles.static()
in python example code, and the {% static %} tag in template examples.
2016-04-28 10:57:22 +01:00