Wykres commitów

6715 Commity (254e675634b6acce482722b423c357f5eeb4c120)

Autor SHA1 Wiadomość Data
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
Tim Heap f742d4a476 Use .. code-block:: for all python, html blocks 2016-11-28 13:41:34 +00:00
Tim Heap 2f8a43cd66 Document new blocks in login template
The old `branding.rst` docs were combined with the new docs on
customising the login page in a new `admin_templates.rst` document.
2016-11-28 12:41:06 +00:00
Tim Heap 15c18e7f56 Add blocks as customisation hooks to wagtailadmin/login.html 2016-11-28 10:59:44 +11:00
Diederik van der Boor d21171c1b0 Fix errors by settings context processor in out-of-request templates
When templates are rendered outside the request cycle,
the `settings` context processor fails because `request.site` is not
created because `SiteMiddleware` was not processed.

This happens whenever requests are mocked for rendering.
For example email rendering by third party packages or unittests
that mock a request object without taking all middleware into account.
2016-11-24 12:14:58 +00:00
Andy Babic 23eced1fcd `Added support for 'exclude_from_explorer' attribute on ModelAdmin class 2016-11-23 16:51:08 +00:00
Karl Hobley 4c0608cbb7 Fix flake8 error 2016-11-21 10:05:25 +00:00
Morgan Aubert 51b4f0f53d Fix #3134
Changes include:
* fixing the FieldError exception that can occur as described in #3134
* add tests for the "search_garbage_collect" command
2016-11-17 14:34:56 +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
Karl Hobley 4dbf230d04 Use capfirst() in Page.get_verbose_name() (#3157)
* Use capfirst() in Page.get_verbose_name()

* Fix capitalisation of page type names in tests
2016-11-16 11:03:05 +00:00
Manuel E. Gutierrez 5a26e22c0f Improve TranslatedField example
Avoid allocating two variables when only need one.
2016-11-15 10:39:55 +00:00
Benoit Vogel 2fba07ad8e Implemented StaticBlock
Uses admin_text which is a Meta attribute.
* StaticBlock code in wagtailcore/blocks + tests
* StaticBlock in Streamfield docs
2016-11-15 10:29:06 +00:00
Matt Westcott 1874b8b259 Fix PEP8 E305 errors (expected 2 blank lines after class or function definition) 2016-11-15 09:43:04 +00:00
Matt Westcott b624bce046 fix iconv gripes from #2752 2016-11-14 21:33:25 +00:00
Thejaswi Puthraya 6821c763ea Refs #2717. Custom forms for modeladmin. 2016-11-11 15:30:44 +00:00
Matt Westcott c41af1fd8c Hardcode the module path wagtail.wagtailcore.models.PageManager in system check message
The use of Manager.from_queryset means that __module__ / __name__ don't work reliably,
resulting in a misleading message - see https://groups.google.com/d/msg/wagtail/6vZExngYVu4/vQBecOckAwAJ
2016-11-11 12:07:16 +00:00
Matt Westcott 4b3ae1cbbf Remove unused blockname-* classname from sequence-member elements - fixes #3142 2016-11-09 16:46:19 +00:00
Matt Westcott 98b4a6dccd remove as-yet-unused tutorial screenshots for categories 2016-11-09 15:47:55 +00:00
Matt Westcott 011f2099eb Remove categories section, add better example of MultiFieldPanel, minor copyediting 2016-11-09 14:35:58 +00:00
Scot Hacker 756d5ec0dd Move slugurl example/explanation
- Also misc cleanup
2016-11-09 10:42:47 +00:00
Scot Hacker 3634c2b289 Add a Categories system to Getting Started tutorial 2016-11-09 10:42:46 +00:00
Scot Hacker 8c5b62ccfc Intro tutorial additions and improvements
- Addresses all issues raised in PR review
- Adds more info to "Navigating parents/children"
- Adds a new dedicated section on overriding context
2016-11-09 10:42:45 +00:00
Scot Hacker 32f97ff43a Update Getting Started tutorial to include posts automatically, plus tagging
- Resolves #3096
2016-11-09 10:42:44 +00:00
Matt Westcott 3917730f5f Update pull request message to mention the need for linting and tests/docs
Also remove Markdown formatting for header / links (because the user usually won't see the formatted version anyhow)
2016-11-09 10:35:14 +00:00
Matt Westcott d9c27f0325 Tell developers to use the bundled version of six (we don't install it as a dependency any more) 2016-11-09 10:35:12 +00:00
Matt Westcott d337412af4 Fix links to contributing guidelines 2016-11-09 10:35:11 +00:00
Tom Dyson d68c015658 Specify Github merge option for minor doc fixes (#3144) 2016-11-08 09:57:15 +00:00
Janneke Janssen 24eee6e41e [FIX] Cloudfront docs typo (#3143) 2016-11-08 09:42:46 +00:00
Matt Westcott 59e9a31bc1 Document the fact that a matching version of the elasticsearch package must be used 2016-11-04 11:14:12 +00:00
Hammy Goonan 7cdc1cd0aa Closing p tag on home_page template. 2016-11-04 10:39:55 +00:00
Matt Westcott 8de1b1b16f Release note for #3035 2016-11-03 16:58:54 +00:00
Matt Westcott 7d3dcc0add Remove SelectorFormat scss-lint rule that has so many arbitrary exclusions that there's no point in it existing 2016-11-03 16:58:53 +00:00
Matt Westcott 378516855f fix table cell CSS so that the 'choose another page' button displays in full 2016-11-03 16:58:51 +00:00
Matt Westcott 1b2cb50a84 Add documentation for bulk delete permission 2016-11-03 16:58:50 +00:00
Matt Westcott bc9ebe46d2 Add release note detailing how to restore bulk delete permission to existing groups 2016-11-03 16:58:49 +00:00
Matt Westcott 0070da62db add bulk_delete permission type 2016-11-03 16:58:48 +00:00
Matt Westcott 5c9fc29fbe Mention that deleting a published page requires publish permission 2016-11-03 16:10:11 +00:00
Matt Westcott e681cb3626 Add documentation about permission configuration 2016-11-03 16:10:09 +00:00
Matt Westcott bfa9a953fc Rewrite page delete permission rules so that publish permission doesn't automatically grant deletion
The old permission logic allowed anyone with publish permission to delete pages, with no further checks applied. This is incorrect, because the permission rules applied elsewhere establish that 1) deletion is equivalent to editing, and 2) publish permission DOES NOT imply edit permission.
2016-11-03 16:10:08 +00:00
Gary Krige 9038da9fcd Don't repeat set_url_path logic 2016-11-01 17:09:45 +00:00
Tim Heap 1849e9edf7 Only show imminent DeprecationWarnings by default
Otherwise the PendingDeprecationWarnings for the next version of Django
become very noisy. The PendingDeprecationWarnings are generally ignored
because of the large range of Django versions supported, so printing
them by default causes nothing but noise. This causes actual warnings to
be ignored.
2016-11-01 16:53:52 +00:00
Tim Heap c0289801d7 Catch and assert warnings in wagtailembeds
Otherwise they appear as noise in the test log
2016-11-01 16:53:51 +00:00
Tim Heap 65296c018d Fix a use of assertEqual 2016-11-01 16:53:51 +00:00
Matt Westcott c9137d1dc0 Update release note and credits for #3071 2016-11-01 14:05:05 +00:00
Matt Westcott b4954c1fdf 'Ready to develop' label is defunct - suggest 'difficulty:Easy' instead 2016-10-27 21:02:00 +01:00
Matt Westcott 7545ed3675 We don't have t-shirts any more :-( 2016-10-27 20:55:19 +01:00
Ducky 7922f1abeb restructured and added to contribution guide
As a new contributor I found some of the information for contributing hard to
find easily. I think this restructure should fix that, by bringing relevant
menus under their headings and adding an additional heading for 'more
information' instead of just 'other contributions'.
2016-10-27 20:50:28 +01:00
Ducky 76ffc972a5 fixes issue where closing the 'MORE' action scrolls to the top of page.
fixes #3076
2016-10-27 20:47:16 +01:00
Tim Heap 14af9858e9 Use a timezone that does not use DST in tests
I was getting a failure in the scheduled publishing tests, as in 10 days
time exactly the America/Chicago timezone goes through a DST transition,
which renders a time submitted in a form to be invalid.

Debugging this was fun.
2016-10-27 20:33:55 +01:00
Tim Heap 839db55abe Hopefully fix intermittent test failures
Something was polluting the edit handlers with rich text fields that
then failed somewhere else due to missing configs. I'm not sure exactly
where and what the leakage was, but the test now pass consistently for
me so hopefully this fixed it? 🤷
2016-10-27 20:33:55 +01:00