Commit graph

3997 commits

Author SHA1 Message Date
Matt Westcott
d3a16b8d27 Release note for #1161 2015-04-27 14:51:33 +01:00
Matt Westcott
6668a5fa69 revert typo fix which wasn't 2015-04-27 14:22:15 +01:00
Matt Westcott
d385e1fd4b TestPageModel needs to be both is_abstract = True and Meta.abstract = True 2015-04-27 14:22:15 +01:00
Karl Hobley
1401df9457 Fix typo
It's friday afternoon...
2015-04-27 14:22:15 +01:00
Karl Hobley
69e65a4ab8 Check that using subpage_urls raises deprecation 2015-04-27 14:22:15 +01:00
Karl Hobley
122c524a1c Hide subpage_urls deprecation warning in tests 2015-04-27 14:22:15 +01:00
Karl Hobley
4b4b4bcc74 Skip old style tests on Django 1.8 and above 2015-04-27 14:22:15 +01:00
Karl Hobley
1384129d89 Added deprecation warning for old style 2015-04-27 14:22:15 +01:00
Karl Hobley
7200def791 Added @route decorator 2015-04-27 14:22:15 +01:00
Matt Westcott
f7b2cfbb4e Move release note for #1236 from 1.0 to 0.8.7 2015-04-27 14:22:01 +01:00
Tom Dyson
7a66367517 Merge pull request #1239 from revsys/copyright-year
Update docs copyright year
2015-04-26 21:57:48 +01:00
Tom Dyson
c7f8813020 Merge pull request #1238 from revsys/sites-in-docs
Add Sites to configuration instructions
2015-04-26 21:57:18 +01:00
Frank Wiles
312033ba4e Update docs copyright year 2015-04-25 13:01:58 -05:00
Frank Wiles
9239057489 Add Sites to configuration instructions 2015-04-25 12:22:54 -05:00
Matt Westcott
d22413dafc Remove 'customising the tabbed interface' section from 1.0 release notes
It's covered by the 'editing API' docs, and isn't something that developers need to know about at the point of upgrading.
2015-04-24 15:17:08 +01:00
Dave Cranwell
f0b12dede4 Update README.rst 2015-04-24 11:40:05 +01:00
Dave Cranwell
6f8e1e65cb Update README.rst 2015-04-24 11:39:07 +01:00
Dave Cranwell
88e5bc5cee fixing typo, which added double quote to static file name 2015-04-24 10:48:12 +01:00
Matt Westcott
a4af4b9e0a release note for #1226 2015-04-24 10:45:42 +01:00
Matt Westcott
550e4d611b Merge pull request #1226 from kaedroho/static-url-cleanup
Replace {{ STATIC_URL }} with {% static %} tags
2015-04-24 10:42:32 +01:00
Matt Westcott
777930c9a8 typo 2015-04-24 09:50:54 +01:00
Matt Westcott
35a8802fac move release note item for #942 from 1.0 to 0.8.7 2015-04-23 16:54:41 +01:00
Matt Westcott
587349b83d Merge branch 'kaedroho-issue-1168' 2015-04-23 16:12:54 +01:00
Matt Westcott
07cf971911 Release note for #1225 2015-04-23 16:12:39 +01:00
Matt Westcott
e15d19c6dd Merge branch 'issue-1168' of https://github.com/kaedroho/wagtail into kaedroho-issue-1168 2015-04-23 15:51:12 +01:00
Karl Hobley
1e41a4d8fa Merge pull request #1202 from pcraston/master
#1183 add note to staticsitegen documentation
2015-04-23 11:54:04 +01:00
Karl Hobley
b744e953de Don't use spelling extension on read the docs 2015-04-22 17:39:23 +01:00
Karl Hobley
f2b4ac9753 Prevent {{ STATIC_URL }} from being used in templates 2015-04-22 12:20:23 +01:00
Karl Hobley
57fd4656fd Replace {{ STATIC_URL }} with {% static %} tags
STATIC_URL is not added into the template context by default in Django 1.8. Also, I think {% static %} looks neater
2015-04-22 12:18:56 +01:00
Dan Braghis
4adb3f2dc4 Change translation wording to strongly point to Transifex 2015-04-22 10:36:00 +01:00
Dan Braghis
d725bb0390 Update RTD links and add Transifex as preferred translation option 2015-04-22 10:26:21 +01:00
Karl Hobley
8e7c9306ad RoutablePage: Change way URL resolver is created
Fixes #1168

Prevously, we looked up the URLs directly from the subpage_urls attribute and gave the value this returned to Djangos get_resolver function.

get_resolver implements an infinite LRU cache so if this attribute was a property, every time a different instance of RoutablePage called it, a new item was added to the cache. This would repeat until the process was restarted or crashed.

This commit makes defining subpage_urls as a property raise an error so this memory leak can't happen. The implementation was taken from #1161 to make it forwards-compatible.

The changes are:
 - Added a new classmethod called get_resolver. This builds a RegexURLResolver itself and caches it on the class
 - No longer using Djangos get_resolver so url configs don't get cached twice
 - Added a new classmethod called get_subpage_urls. This can be overridden by subclasses to add more URLs
2015-04-22 10:13:59 +01:00
Karl Hobley
b5a3821dfa Changelog/release note for #1222 2015-04-22 09:58:03 +01:00
Karl Hobley
769abc5f54 Merge pull request #1222 from gasman/fix/div-whitelisting
Rich text whitelisting / html conversion should not be skipped when translating 'div' to 'p'
2015-04-22 09:46:52 +01:00
Karl Hobley
c7b82a7887 Merge pull request #1219 from gasman/fix/listblock-ordering
Treat ListBlock ordering numerically, not alphabetically - fixes #1215
2015-04-21 21:42:51 +01:00
Karl Hobley
a7b44c4e27 Fix link in readme 2015-04-21 17:36:53 +01:00
Matt Westcott
bff12a0b22 split up ListBlock / StreamBlock ordering tests 2015-04-21 16:35:31 +01:00
Matt Westcott
fe4741e4e3 Do not skip whitelisting when converting 'div' elements to 'p' 2015-04-21 16:27:42 +01:00
Matt Westcott
27c98d6ab3 failing test for whitelisting of DIV elements 2015-04-21 16:25:27 +01:00
Karl Hobley
6de6437298 Changelog/release note for #1218 2015-04-21 16:21:47 +01:00
Karl Hobley
06c3cf91a2 Merge pull request #1218 from gasman/fix/frontendcache_unroutable_page
Skip front-end cache purge for pages with no routable URL - fixes #1208
2015-04-21 16:09:20 +01:00
Karl Hobley
59bf899a6a Docs: Fix title underline 2015-04-21 16:05:37 +01:00
Matt Westcott
7e98c71b90 Add Joss's twitter widget tutorial to Third-party tutorials 2015-04-21 12:05:30 +01:00
Karl Hobley
fdaa7e91e2 Added @olifante to contributors.rst 2015-04-21 09:58:58 +01:00
Karl Hobley
e917f3c6cc Updated translation catalog 2015-04-21 09:45:12 +01:00
Tiago Henriques
18e11746c2 Internationalise missing models and model fields 2015-04-20 21:52:21 +02:00
Matt Westcott
5fd4148278 Treat ListBlock ordering numerically, not alphabetically - fixes #1215 2015-04-20 20:25:32 +01:00
Matt Westcott
b463d27e10 failing test for #1215 2015-04-20 20:23:22 +01:00
Matt Westcott
4a9a23cc01 Skip purge_page_from_cache if page has no routable URL - fixes #1208 2015-04-20 20:02:21 +01:00
Matt Westcott
6ffe1630aa failing test for #1208 2015-04-20 19:59:25 +01:00