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
Matt Westcott
e4f2d9e669
add test for the frontend cache signal handler
2015-04-20 19:40:46 +01:00
Tom Dyson
0e926e8399
Merge pull request #1210 from kaedroho/spellcheck
...
Add spellchecker to the docs
2015-04-20 14:08:17 +01:00
Dave Cranwell
b14d454b79
Merge pull request #1191 from JoshBarr/feature/css-guidelines
...
Added css guidelines
2015-04-20 10:49:52 +01:00
Karl Hobley
e145e8ebcf
Spelling corrections
2015-04-19 10:53:34 +01:00
Karl Hobley
458fdbf776
Add 'login' to wordlist
2015-04-19 10:28:10 +01:00
Karl Hobley
7d6b039239
Use GB English for spellchecking
2015-04-19 10:24:12 +01:00
Karl Hobley
739ef64cf1
Started fixing spellings. Added wordlist
2015-04-17 23:05:08 +01:00
Karl Hobley
27facef89e
Added spellcheker
2015-04-17 22:49:16 +01:00
Josh Barr
b7ef25d8e0
created contrib section in docs, made amends to css styleguide
2015-04-18 08:34:54 +12:00
Dave Cranwell
80da0344d7
removed inconsistent ribbon effect from messages
2015-04-17 17:09:53 +01:00
Dave Cranwell
f772ee182e
show image transparency better
2015-04-17 16:52:27 +01:00
Dave Cranwell
879c9ebf63
Merge pull request #1151 from JoshBarr/fix/editor-z-index
...
Prevent toolbars from overlapping the fixed footer
2015-04-17 14:37:07 +01:00
Karl Hobley
1482edc81d
Rerun compilemessages
2015-04-17 13:07:59 +01:00
Karl Hobley
602177f2a3
Pulled translations from transifex
2015-04-17 13:05:27 +01:00
Karl Hobley
83547799f1
Rerun makemigrations
2015-04-17 12:40:44 +01:00
Karl Hobley
f490c99934
Use named variables in template strings
...
Makes translation easier
2015-04-17 12:38:19 +01:00
Karl Hobley
3606d89b1c
Changelog/release note for #1186
2015-04-17 12:33:45 +01:00
Karl Hobley
3f81ac2c0f
Merge pull request #1186 from JoshBarr/feature/procedural-menu-highlights
...
Enhancement #644 : Allow for procedural highlighting of menu items
2015-04-17 12:29:17 +01:00
Karl Hobley
b9ef85cc9b
Update CONTRIBUTORS.rst
2015-04-17 10:53:14 +01:00
Tiago Henriques
ea5fe09e02
Fix or improve a few pt_PT translations
2015-04-17 10:40:48 +01:00
Tiago Henriques
81a96c40a8
Fill in missing pt_PT translations
...
Fill in missing translations in all European Portuguese .po files.
2015-04-17 10:40:48 +01:00
Tiago Henriques
f74ecf445a
Fix fuzzy pt_PT translations
...
Fixed fuzzy translations in all European Portuguese .po files.
2015-04-17 10:40:48 +01:00
Benoit Bar
41478e1faf
french translation improvement
2015-04-17 10:20:24 +01:00
Yusuf (Josè) Luis
b125ce1142
Translated missing
...
Please, regenerate this .po file and i will translate it :D
2015-04-17 10:20:24 +01:00
Karl Hobley
f698c2fb52
Fixed capitalisation of field verbose names
2015-04-17 10:12:25 +01:00
claudemiro
96240288f8
Fix main menu highlight in admin.
...
The menus loses hightlight when using a a language other than English.
2015-04-17 09:45:51 +01:00
Benoit Bar
d397dd1ef4
i18n improvement
2015-04-17 09:44:38 +01:00
Josh Barr
58517d78ad
reverted submenuitem is_active method for naming consistency
2015-04-17 07:27:39 +12:00
Josh Barr
c8e646ea78
implement changes from code review
2015-04-17 07:24:37 +12:00
Dave Cranwell
919f14a063
Merge remote-tracking branch 'upstream/master'
2015-04-16 16:48:08 +01:00
Dave Cranwell
e5771697be
corrected page var which should have been page_to_move but didn't throw test errors
2015-04-16 16:47:37 +01:00