Wykres commitów

30 Commity (488f338c1c9d3493b1e4806a360677caaa1f14a3)

Autor SHA1 Wiadomość Data
Gordon Pendleton 06ed3ae6b8
Refactor page fetching logic to cache per request (#11683)
Adds two new helper static methods:
- `Page.route_for_request()` - to find the page route, given a request
  object and a URL path
- `Page.find_for_request()` - to find the page given, a request object and a URL
  path
2024-04-12 17:16:39 +01:00
Buraah bfa29201c3 Docs - Page names & reference section - Update British spelling to American
- Changed all British spellings to American spellings, in the Customizing admin templates section of the docs
- Transferred all British spellings in the usage guide and advanced topics section to American spellings
- Update a series of other pages to use the spelling cutomize in the file name
Implemented all feedbacks on the usage guide and advanced topics section
2024-02-12 08:44:19 +10:00
Salvo Polizzi dd338de6f3 docs: documented get_children in Page model reference
Fixes #11499
2024-01-23 07:49:40 +10:00
LB Johnston bbcf1e74ee Add changelog & a few fixes for #11194
Partially reverts commit 7fa335c20d (fixing some issues with the URL updates)
2024-01-21 18:55:43 +10:00
Neeraj P Yetheendran 7fa335c20d Update Django intersphinx references to new format 2024-01-21 10:09:21 +10:00
Shlomo Markowitz f9c7df49c8 Add support for modifying default page listing ordering 2023-12-07 06:50:38 +10:00
Temidayo32 9349e2ad9f
Allow UniqueConstraint in place of unique_together for TranslatableMixin's system check 2023-11-10 17:29:26 +00:00
Matt Westcott ab86351a8d Remove legacy moderation system 2023-11-01 16:51:25 +00:00
Matt Westcott cdac7dc7f5 Remove permission_type field from GroupPagePermission 2023-11-01 15:18:41 +00:00
Neeraj P Yetheendran 7239e11e0c
Avoid purging Revisions in use by third-party packages (#10961)
* Resolves #10678 Avoid purging Revisions in use by third-party packages

---------
Co-authored-by: MeghanaNalla <123588774+MeghanaNalla@users.noreply.github.com>
Co-authored-by: sag​e <laymonage@gmail.com>
Co-authored-by: Storm B. Heg <storm@stormbase.digital>
2023-10-19 12:52:29 +02:00
Sage Abdullah 065fab50a3
Deprecate submitted_revisions manager and save_revision's submitted_for_moderation kwarg 2023-10-05 10:35:27 +01:00
Sage Abdullah 5f70ebeaa1
Deprecate Revision.approve_moderation() and Revision.reject_moderation() 2023-10-05 10:18:48 +01:00
Jake Howard 69724e4e3a Create preview-aware & page-enhanced cache template tags
This can be used in other places, but ensures caches are invalidated
whenever something about a page changes.

- Add a util to get wagtail-specific fragment cache keys
- Don't pollute context when injecting site variable
- Add documentation on wagtail fragment caching
- Define an intelligent cache key for pages
- Allow the components of the cache key to be easily modified
- Note that some manual changes may not create a new cache key

Co-authored-by: Andy Babic <andyjbabic@gmail.com>

Closes #5074
2023-07-20 08:24:09 +10:00
Daniel Kirkham c895e9031b Fix treebeard link 2023-05-14 07:40:13 +10:00
Matt Westcott 4a47bc611b Remove old versionadded / versionchanged notes 2023-04-21 13:47:10 +01:00
Andy Babic f680f188f3 Add useful properties to Locale
- Update get_display_name() to always return a string
- Add documentation and unit tests
2023-03-21 08:02:40 +10:00
Matt Westcott a634045b6c Remove remaining versionadded directives from before 4.2 2023-02-10 13:20:34 +00:00
Matt Westcott 18a574b520 Remove old versionadded / versionchanged directives from docs 2023-02-08 14:25:09 +00:00
Sage Abdullah ad3ef5875d
Update docs and changelog to reflect changes for #9817 2023-01-19 14:52:34 +00:00
Sage Abdullah 18c140e8be
Add docs for `WorkflowMixin` and enabling workflows for snippets 2023-01-19 14:07:51 +00:00
Sage Abdullah e1c6ae2d2b
Rename `Task.page_locked_for_user` to `Task.locked_for_user` 2023-01-19 14:06:04 +00:00
Sage Abdullah d8f9d9869a
Rename `page_revision` to `revision` in `TaskState` 2023-01-19 14:06:03 +00:00
Sage Abdullah 8dcc292d26
Add docs for `LockableMixin` and locking snippets 2022-12-14 11:46:57 +00:00
Sage Abdullah d71a7ccdd4 Add links to topic guide from mixin reference docs 2022-08-21 07:18:27 +10:00
Sage Abdullah e4509f3432 Improve Revision model docs 2022-08-16 07:58:28 +10:00
Sage Abdullah e864b9c4d1 Add docs for PreviewableMixin 2022-08-16 07:58:28 +10:00
Sage Abdullah fb6ec3ad00 Add docs for DraftStateMixin 2022-08-16 07:58:28 +10:00
Sage Abdullah cf3cea9a5b Add docs for RevisionMixin 2022-08-16 07:58:28 +10:00
Sage Abdullah 3151200288 Improve Page model reference documentation
- Use inline code for `Locale` and `TranslatableMixin` headers to be consistent with other classes in the page
- Move `locale` and `translation_key` of `TranslatableMixin` to its own "Database fields" section
- Add missing periods in Page.update_aliases parameter description
2022-08-16 07:58:28 +10:00
LB (Ben Johnston) aa55457c82
Convert reference pages documentation section to Markdown (#8881)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-20 16:49:25 +01:00