Wykres commitów

494 Commity (main)

Autor SHA1 Wiadomość Data
Nick Moreton 13c5993f82 Enable opening links within the live preview panel 2022-11-28 11:50:34 +00:00
Thibaud Colas c3185e5974 Add two new embed blocks within bakerydemo site 2022-11-25 17:26:46 +00:00
Thibaud Colas 8d68d70260 Update bakerydemo fixture with Wagtail data changes from 2019 to v4.1.1 2022-11-25 17:26:46 +00:00
Matt Westcott 023d27386b Call rebuild_references_index on initial load
Bump Wagtail version to 4.1 (and Django to 4.1) and add a call to rebuild_references_index as part of the load_initial_data management command, so that the "Used X times" reference counts for images and snippets are accurate.
2022-11-01 13:58:06 +00:00
Sage Abdullah 7815be8ae0 Apply DraftStateMixin and RevisionMixin to BreadIngredient model 2022-10-20 15:00:43 +01:00
Sage Abdullah 83388aa18e Apply PreviewableMixin with multiple preview modes to Person model 2022-10-20 15:00:43 +01:00
Sage Abdullah 7aa02ef310 Enable scheduled publishing feature for Person snippet 2022-10-20 15:00:43 +01:00
Sage Abdullah f381355cfe Apply DraftStateMixin and RevisionMixin to Person model 2022-10-20 15:00:43 +01:00
Sage Abdullah 8888011b66 Apply PreviewableMixin with single preview mode to FooterText model 2022-10-20 15:00:43 +01:00
Sage Abdullah ae3f2f2396 Enable scheduled publishing feature for FooterText snippet 2022-10-20 15:00:43 +01:00
Sage Abdullah f27ed416ea Apply DraftStateMixin and RevisionMixin to FooterText model 2022-10-20 15:00:43 +01:00
Sage Abdullah 423fe9195f Apply RevisionMixin to BreadType model 2022-10-20 15:00:43 +01:00
Matt Westcott 172cdd9e5f
Rename People model to Person (#342) 2022-10-20 09:37:18 +01:00
sag᠎e 8c38696092
Add styles for `EmbedBlock` (#362) 2022-10-19 14:48:32 +01:00
Matt Westcott 9ea4261ae5 Fix help text for EmbedBlock
The URL suggested in the help text for EmbedBlock is incorrect - users should specify the Youtube page URL (`/watch`) to have it translated to an embed snippet via oembed. Passing an `/embed/` URL fails, as the oembed endpoint doesn't recognise these.
2022-09-13 14:18:13 +01:00
Matt Westcott 3111176c80 Set max_length on homepage promo text 2022-08-30 13:05:27 +01:00
Matt Westcott 0824f804cc lint create_random_data.py 2022-08-25 17:28:06 +01:00
Jake Howard ce1df734b8 Add a util script to create large amounts of random data 2022-08-25 17:20:56 +01:00
Sage Abdullah 32f5e55ef5 Add # noqa to print statements 2022-08-19 11:44:27 +01:00
Sage Abdullah 591fab1bb7 Fix Stylelint issues 2022-08-18 12:51:17 +01:00
Sage Abdullah c02c9116a8 Format code with Stylelint 2022-08-18 12:51:17 +01:00
Sage Abdullah dfa2c511b1 Format code with Prettier 2022-08-18 12:51:17 +01:00
Sage Abdullah 707ac77ba1 Format code with djhtml 2022-08-18 12:51:17 +01:00
Sage Abdullah a16fcf7557 Fix missing closing </li> tag 2022-08-18 12:51:17 +01:00
Sage Abdullah 6732b71983 Format code with isort 2022-08-18 12:51:17 +01:00
Sage Abdullah 40696f941c Format code with black 2022-08-18 12:51:17 +01:00
LB (Ben Johnston) cabba04d97
add styleguide to bakerydemo (#346)
Co-authored-by: LB Johnston <lb.johnston@virginaustralia.com>
2022-07-25 08:01:18 -04:00
Thibaud Colas 8bea494a43
Add a demo of ModelAdmin InspectView on most complex model (#345) 2022-07-11 13:15:18 +02:00
Matt Westcott f64e90a71e Update form submission data in fixture to be valid for JSONField
Fixes #343
2022-07-07 12:05:40 +01:00
Matt Westcott d17c0dec80 Change BASE_URL to WAGTAILADMIN_BASE_URL to silence Wagtail 3.0.1 warning 2022-06-20 11:27:33 +01:00
Matt Westcott 3f009a94df Migrate streamfields to JsonField 2022-06-20 11:18:38 +01:00
Matt Westcott 4bcadc96d1 Add migrations from Django and taggit upgrades 2022-06-20 11:18:38 +01:00
Matt Westcott e702c18101 Replace deprecated panel types with FieldPanel 2022-06-20 11:18:38 +01:00
Coen van der Kamp 32d8809877 Upgrade to Wagtail 3 2022-06-15 11:58:53 +02:00
Matt Westcott 4983dd0142
Restore glyphicons font files referenced by bootstrap.min.css (#340)
Fixes #338
2022-06-15 11:36:55 +02:00
Thibaud Colas 5b15666cef Revert settings change done by mistake in 75eab056f0 2022-05-30 09:27:23 +01:00
James Hancock 75eab056f0
Restyle CSS Across Site (#333)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-05-28 00:03:50 +01:00
Thibaud Colas 64a1021b57
Add basic simple_translation setup to bakerydemo (#330)
Co-authored-by: Dan Braghis <dan@zerolab.org>
2022-04-11 16:58:16 +01:00
Kalob Taulien 1e250aea95
Add diversity to pre-loaded People snippets. 2022-04-11 08:53:52 -06:00
Jake Howard dc0534bbe9 Remove stray breadsindexpage
This model was created accidentally, and leads to a messy page tree
2022-02-08 08:54:57 +00:00
Jake Howard e8d3e5077d Fix initial page tree
This was previously creating a single `Page`, with multiple "specific" pages pointing to it.
2022-02-08 08:54:57 +00:00
Vihaan Thora d3c1787922 Rename 0006_auto_20211226_0622.py to 0006_char_field_remove_null.py 2022-02-07 18:55:12 +00:00
vihaanthora d2dea8d4ce Update models.py 2022-02-07 18:55:12 +00:00
Matt Westcott e94bfbbc99 Upgrade to Wagtail 2.16, Django 4.0 2022-02-07 18:25:04 +00:00
Dan Braghis 9394d3a779
Merge pull request #313 from lb-/chore/update-wagtail-url-to-org
update all wagtail.io to wagtail.org
2022-01-19 15:59:59 +01:00
LB Johnston 089d4eae59 update external urls (https) & new links
- fix some links that now redirect to a new location
- ensure all external links are https (not http)
2022-01-15 20:18:47 +10:00
LB Johnston 3590125dc0 update all wagtail.io to wagtail.org
- also ensure that we link to stable not latest when using docs links consistently
2022-01-15 20:14:53 +10:00
Amondale 1de2881d6e Update models.py 2021-10-14 18:39:15 +10:00
LB Johnston ccafa1c6ac Update all Wagtail docs links
- use https instead of http as that is now the default
- update any fixed versions to the latest
2021-09-09 22:00:39 +01:00
LB Johnston e754783875 Update all Django docs references to the latest (3.2) version 2021-09-09 21:59:05 +01:00
LB (Ben Johnston) 4e2247772c
Merge pull request #294 from gasman/admin/django-3.2
Upgrade to Django 3.2
2021-09-10 06:39:41 +10:00
Matt Westcott 659cce75a5 Add django-debug-toolbar
Add django-debug-toolbar, disabled by default (because not everyone will want it and it's a performance hit). It frequently comes in useful during Wagtail core dev, but having to make local changes to bakerydemo means that we perhaps don't use it as much as we should...
2021-07-21 15:07:17 +01:00
Matt Westcott 6f7406b4a5 Update urlconf to use django-2-style paths 2021-07-20 12:15:24 +01:00
Matt Westcott b22e14e4aa Upgrade to Django 3.2
Set DEFAULT_AUTO_FIELD to prevent deprecation warnings (Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField')
2021-07-16 19:48:38 +01:00
Matt Westcott 1a40b54993 upgrade to elasticsearch 5 2021-04-19 12:54:57 +01:00
Matt Westcott e82c84b6a3 Fix collection paths for alphabetical ordering
Required for Wagtail 2.11 compatibility, as per https://github.com/wagtail/wagtail/pull/6417
2020-09-30 15:30:52 +01:00
Matt Westcott 2e3b59c8c4 Remove legacy rich text image styles
The `<div class="rich-text">` wrapper around rich text was disabled by default in Wagtail 2.10 (https://docs.wagtail.io/en/stable/releases/2.10.html#div-class-rich-text-wrappers-removed-from-rich-text) and we'd prefer not to enable the legacy handler, to encourage Wagtail developers to follow current best practice.

There is already a `width: 100%` rule in place for all img elements, and since an image with `width: 100%` but no `height: auto` would render with the wrong aspect ratio, it's reasonable to assume that no images on the site rely on `height: auto` being absent. Adding this to the `img` rule therefore makes the `rich-text` rule redundant.

The `width: 100%` also meant that the left/right-alignment options for rich text images had no effect - we add a `width: 50%` to those to make them meaningful again.

Finally, the responsive-object wrapper for media embeds was dropped in 2.9, so those rules are unused since then. Anyone who feels strongly about restoring responsive embeds is welcome to contribute a PR :-)
2020-08-26 10:20:36 +10:00
Matt Westcott 1fa7cdccd2 populate FormField.clean_name in initial data 2020-08-17 12:20:47 +01:00
Cynthia Kiser 5d255cd535 upgrade to Wagtail 2.10 2020-08-17 11:43:18 +01:00
Cynthia Kiser d9d02d9317 Add an example local.py for use with docker-wagtail-develop 2020-08-04 14:28:28 +01:00
Karl Hobley 82cbbfb09b Minor spelling fixes in fixture 2020-07-06 09:33:46 +01:00
Thibaud Colas 2ec4475f75
Allow all hosts to simplify cross-browser testing (#268) 2020-06-04 15:50:54 +01:00
jonndoe 20fdd22226 height :auto, for displaying images without distortion. 2020-05-11 21:51:41 +01:00
Thibaud Colas 30dcfd4dfd Remove useless "content" styles 2020-05-07 21:33:44 +01:00
Thibaud Colas fa35309371 Remove unneeded style override for nav pills items 2020-05-07 21:33:44 +01:00
Thibaud Colas 40faa0a16d Remove unnecessary flex for no-gutters 2020-05-07 21:33:44 +01:00
Thibaud Colas 2ed2d9408c Reset form elements border regardless of viewport 2020-05-07 21:33:44 +01:00
Thibaud Colas 9490524008 Make whole bread list item a link 2020-05-07 21:33:44 +01:00
Thibaud Colas e2c6f3b09e Change selectors to make !important unnecessary 2020-05-07 21:33:44 +01:00
Thibaud Colas cf81da5db4 Clean up input width definitions 2020-05-07 21:33:44 +01:00
Thibaud Colas cb271fc3ae Fix off-by-one media utility media query 2020-05-07 21:33:44 +01:00
Edd Baldry a4f8d887ea Adds 1px border to form page input fields on mobile touch #139 2020-05-07 21:33:44 +01:00
Edd Baldry dd7bb19afe Amend mobile menu to not display child items 2020-05-07 21:33:44 +01:00
Edd Baldry 4760216ec8 Add global mobile menu style 2020-05-07 21:33:44 +01:00
Edd Baldry 6afa3127a1 Amend mobile styles for global hero, main menu, breads index, locations index and breads detail page 2020-05-07 21:33:44 +01:00
Edd Baldry 53fe8e8e6d Wrap elements with 12-col div as per other detail pages 2020-05-07 21:33:44 +01:00
Edd Baldry fadcc373f5 Use consistent hero image include 2020-05-07 21:33:44 +01:00
Matt Westcott 3372510e60 Remove use of request.site / SiteMiddleware 2020-05-05 12:27:58 +01:00
Matt Westcott 5dd8afb3d3 Update API imports for Wagtail 2.8 2020-02-11 09:43:45 +00:00
Matt Westcott de6876d452 Upgrade whitenoise to 5.0.x for Django 3.0 compatibility 2020-02-03 16:33:42 +00:00
Andy Babic ef50e188e1 Use search_fields and list_filter on ModelAdmin classes to make features easier to test (for things like accessibility) (#262) 2020-01-23 15:34:45 +00:00
Caitlin White 48ed8a06e7 Make site work offline by self-hosting webfonts, jQuery, Bootstrap etc. (#261)
* Self-host Bootstrap and jQuery

* Self-host Google fonts (via https://google-webfonts-helper.herokuapp.com/fonts)

* Use wagtailfontawesome package for Font Awesome Icons on front end

* Self-host HTML5 Shiv and Respond.js

* Add Bootstrap Glyphicons font files and change name of static fonts directory
2019-11-06 09:10:39 -05:00
Tobias McNulty d06f1d0f97
copy files from fixtures dir to MEDIA_ROOT (or remote storage) during load_initial_data (#255)
Note: This change will require any existing deployments to manually copy
bakerydemo/base/fixtures/media/original_images/ into bakerydemo/media/
2019-11-05 21:29:52 -05:00
Tobias McNulty d5d81129a1
fix class path for S3Boto3Storage (#260) 2019-10-19 18:58:09 -04:00
Tobias McNulty 02737b411b
add support for Google Cloud Storage (#256) 2019-10-19 18:57:43 -04:00
Tobias McNulty 7ee23ded4c add flake8 and fix a few formatting bugs 2019-09-12 16:04:38 +01:00
Tobias McNulty cab9e25474 add missing migration and check for them via Travis in the future 2019-09-12 16:02:59 +01:00
Matt Westcott 55db9f3e15 Remove redundant head-extra block from head.html
Fixes #248 - thanks to @linuxsoftware for the report.
2019-09-12 13:10:39 +01:00
Rupa Lahiri 47b883a4a4 Move demo app features from about page to readme. Fix #247 (#249) 2019-09-10 10:29:40 +01:00
Dan Swain 8e6dde3f03
Keep the year set to the current year 2019-07-27 13:32:16 -04:00
Karl Hobley 70ea9b1fae Update to boto3
This fixes S3 support
2019-07-25 12:22:46 +01:00
Chris 31c610316d Correct the html element main
Correct the HTML5 element 'content' to 'main'. 'content' is obsolete and wasn't meant to be used in ordinary HTML. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/content
2018-11-29 15:52:45 +00:00
David Ray de9cddd1fe Fixes #214 2018-07-23 18:32:51 +02:00
Matt Westcott 1fdf3411db Fix overlapping panels on Person name fields. Fixes #209 2018-07-15 10:17:30 +02:00
Paolo Dina 742448dcdd Fix search in People snippet. Fixes #205 2018-06-04 09:00:47 +01:00
Matt Westcott 0f11e0f208 Enable API 2018-05-29 09:44:04 +01:00
Matt Westcott 568588591a Enable sitemap 2018-05-29 09:44:04 +01:00
Matt Westcott 1aea7bca75 Fix image dimensions / file sizes in fixtures. Fixes #195 2018-05-22 20:44:48 +01:00
Matt Westcott df1257ef2b Use url_path to check for descendant pages in navigation tags
This ensures that they continue working on pages that have no routable URL. Fixes #180
2018-05-22 20:18:36 +01:00
J Rob Gant fd37ac9310 Remove _lpchecked and empty id attributes 2018-05-22 20:07:05 +01:00
J Rob Gant 51db5176b0 Standardize PROJECT_DIR and BASE_DIR with Django defaults. 2018-05-22 20:01:10 +01:00
Matt Westcott 261c1ee23f Upgrade to Wagtail 2.1 2018-05-22 20:01:10 +01:00
Matt Westcott 9729468676 Use new Wagtail 2.0 module paths 2018-03-01 12:10:25 +00:00
blgo 1d89b7ab76 Fix broken link to 'Getting started' page in sample about page 2018-02-27 10:40:10 +00:00
Matt Westcott 0565aaeeba
Add routablepage to INSTALLED_APPS
As per discussion on https://github.com/wagtail/wagtail/issues/4258
2018-02-10 21:42:39 +00:00
LB (Ben Johnston) 02710075ae Add support for tags with multiple words
Fixes issue where `my-blog/tags/multi-word-tag` would result in a 404, even if there was a valid tag slug for `mult-word-tag`
2018-02-06 14:28:09 +00:00
Matt Westcott 45665ab74d Gracefully handle missing hero_cta_link 2018-01-30 20:08:20 +00:00
Matt Westcott f5ee393957 Set site name to Wagtail Bakery
'Main' isn't really suitable as a site name, because it results in a limited-permission user (e.g. an editor with edit permission on the Blog section only) receiving the welcome message "Welcome to the Main Wagtail CMS".
2018-01-17 16:50:56 +00:00
Matt Westcott 6bfecb456f Django 2.0 compatibility fixes 2018-01-17 16:50:23 +00:00
Matt Westcott c60a6129ee Delete default homepage/site records _before_ loading fixture
Deleting them after loading means that the 'numchild' field of the root node (which the fixture correctly gives as 1, corresponding to the bakerydemo homepage) is wrongly decremented to zero, causing the page chooser modal to break (because it thinks root is a leaf node).
2017-11-13 20:15:25 +00:00
Matt Westcott af6c4953bc Remove erroneous index.SearchField('title') entries from search_fields
title is already included in Page.search_fields, so adding it again A) is redundant and B) makes it fail when run against Elasticsearch, due to the two occurrences having different indexing parameters.
2017-11-13 20:15:13 +00:00
Matt Westcott 4079bff981 Remove API v1
This is being removed in Wagtail 2.0.
2017-10-31 14:50:05 +00:00
Matt Westcott 0afd24a0e5 Fix numchild value on root page
When set to 0, the homepage fails to appear in the explorer listing when viewing the root (because Treebeard thinks root is a leaf node and so doesn't bother querying the database for get_children).
2017-10-11 14:26:31 +01:00
Tobias McNulty 1f94861634 add support for CACHE_URL 2017-10-04 18:03:14 -04:00
Tobias McNulty 0133a5a125 switch to the now-released aws-requests-auth==0.4.0 for authenticating requests to Elasticsearch, and upgrade to latest 2.x.x release of elasticsearch-py per https://elasticsearch-py.readthedocs.io/en/master/#compatibility 2017-09-14 18:21:49 -04:00
Tobias McNulty 6e89be1e0b correct "You search for..." text and formatting on search results page 2017-09-01 20:15:48 -04:00
Tobias McNulty f113974ade add (optional) support for Elasticsearch 2017-09-01 19:01:06 -04:00
Mikalai Radchuk 226cfcfbb2 Generate a migration after upgrade to Wagtail 1.12 2017-08-23 13:22:14 +01:00
Mikalai Radchuk e44cf67a8e Upgrade Wagtail to 1.12 2017-08-23 11:28:45 +01:00
David Ray a273f28422 Merge pull request #145 from wagtail/142_routable
Fix preview functionality on BlogIndex when route methods are present
2017-05-01 05:53:58 -04:00
Scot Hacker cd3e4b27c7 Update json dump - one blog page was missing a required image and wouldn't validate on publish 2017-04-23 13:15:53 -07:00
Scot Hacker 8366ec6d79 Fix preview functionality on BlogIndex when route methods are present
Resolves #142
2017-04-23 13:12:27 -07:00
Scot Hacker 8818449b6b Merge pull request #137 from wagtail/135-homepage-list-regression
Fix li regression on homepage
2017-04-02 23:30:23 -07:00
Edd Baldry 8f9783ab2b Add favicon and remove unused images from static img folder 2017-04-02 17:09:09 +01:00
Edd Baldry 58852c4f70 Separate declarations for homepage featured-child list items to remove styling regression 2017-04-02 16:12:50 +01:00
Scot Hacker f5a86c29a9 Data loader removes auto-generated Site and Page 2017-04-01 10:30:59 -07:00
Scot Hacker dc5a672460 Fix dump data export path, data loadable by both sqlite and postgres
- Includes dump_data recipe in readme for future use
2017-04-01 09:56:34 -07:00
Scot Hacker 57d217f143 Export/import compatibility with postgres
- Fix import path
- Also adds two additional author profiles
- Remove some old fixtures
2017-04-01 00:45:53 -07:00
Scot Hacker 3930016207 Add uploaded original_images
- Width-limited to 1200px
- Run through ImageOptim
2017-03-31 00:09:37 -07:00
Scot Hacker 73532a5b98 Merge pull request #129 from wagtail/128-homepage-stretching
Remove homepage image stretching
2017-03-30 22:57:55 -07:00
Scot Hacker 6f03170d8d Merge pull request #127 from wagtail/126-list-regression
List regression on homepage
2017-03-30 08:31:18 -07:00
Scot Hacker a66a63bfc0 Merge pull request #122 from wagtail/120-improve-inline-comments
Improve inline comments
2017-03-30 08:28:29 -07:00
Edd Baldry 863a419981 Use cropped fill rather than relative width for homepage images. Closes #128 2017-03-30 12:41:14 +01:00
Edd Baldry 00549bd506 Merge master. Resolve merge conflicts 2017-03-30 12:33:21 +01:00
Edd Baldry f4ca81d863 Amend models based on @shaker comments 2017-03-30 12:29:23 +01:00
Edd Baldry 9cd39c3d83 Merge pull request #125 from wagtail/88_pep8
PEP-8 and template cleanup
2017-03-30 08:49:18 +01:00
Edd Baldry e5ded7b8d3 Explicitly sets list-style none for li items on homepage 2017-03-29 19:31:18 +01:00
Edd Baldry ddf89a1a56 Merge master. Resolve merge conflicts 2017-03-29 13:28:30 +01:00
Scot Hacker 7c79832caf PEP-8 and template cleanup
- Resolves #88
2017-03-29 00:40:11 -07:00
Scot Hacker 593f20735a Add missing migrations 2017-03-28 17:57:22 -07:00
Edd Baldry 27eeaddf06 Amend the attribute name example within admin for BlockQuote 2017-03-28 16:18:41 +01:00
Edd Baldry d7daf945b7 Override Boostrap CSS's blockquote footer:before attribute 2017-03-28 16:18:14 +01:00
Edd Baldry a08ed3b9c3 Incorporate Tom comments. Change v1.9 to latest throughout 2017-03-28 10:18:14 +01:00
Edd Baldry 326d11b181 Merge master and resolve merge conflicts 2017-03-28 10:11:13 +01:00
Edd Baldry c00a721bde Minor amend for base models.py to bring brackets to new lines 2017-03-28 08:54:42 +01:00
Edd Baldry e77d7313bb Further inline comments on bread model 2017-03-28 08:41:07 +01:00
Edd Baldry a257677a1a Inline comments for locations model 2017-03-28 08:16:20 +01:00
Edd Baldry d85e2b935e Inline comments for blogs 2017-03-27 22:01:43 +01:00
Edd Baldry 0a237c36b9 Limit line-length on base/models.py 2017-03-27 21:13:31 +01:00
Edd Baldry 13e3a52041 Inline comments for the breads model 2017-03-27 19:24:34 +01:00