Ole Laursen
a656cf8a8b
Add .prefetch_related on liaison list page to reduce the number of DB
...
queries (from 571 to 28)
- Legacy-Id: 6991
2013-12-18 16:30:18 +00:00
Ole Laursen
cb4d5b7c2b
Simplify make_test_data a bit by using the create_person helper for the chair and WG delegate, regularize the naming of those
...
- Legacy-Id: 6990
2013-12-18 16:27:02 +00:00
Ole Laursen
81e032b9e4
Remove unnecessary escapes from another bunch of templates
...
- Legacy-Id: 6989
2013-12-18 16:10:47 +00:00
Ole Laursen
23725f781c
Port secr/drafts/report_id_activity.py away from setup_environ too
...
- Legacy-Id: 6988
2013-12-18 16:02:04 +00:00
Ole Laursen
f02f2ccbfc
Regenerate name fixtures, apparently the indentation of the JSON output has changed
...
- Legacy-Id: 6987
2013-12-18 15:53:15 +00:00
Ole Laursen
7b3dc40e5e
Port test/ from django.core.management.setup_environ to DJANGO_SETTINGS_MODULE
...
- Legacy-Id: 6986
2013-12-18 15:51:29 +00:00
Ole Laursen
e54bd17499
Port from django.core.management.setup_environ to DJANGO_SETTINGS_MODULE
...
- Legacy-Id: 6985
2013-12-18 15:51:11 +00:00
Ole Laursen
f88fb5f9ac
Port meeting fix from shimfree branch
...
- Legacy-Id: 6984
2013-12-18 14:56:37 +00:00
Ole Laursen
b72742764f
Set ALLOWED_HOSTS (may need some tweaking), add LOGGING setting to
...
enable HTML exception emails to compensate for not carrying the HTML
patch that was applied to Django 1.2
- Legacy-Id: 6982
2013-12-18 14:00:44 +00:00
Ole Laursen
cf61f2b59b
Remove a bunch of unnecessary |escape filter calls, auto-escaping is enabled by default so manual escape is only necessary in few cases
...
- Legacy-Id: 6981
2013-12-18 13:38:13 +00:00
Ole Laursen
b84440b857
MEDIA_ROOT -> STATIC_ROOT - apparently we don't really use MEDIA_ROOT at the moment since all files are handled not through file fields, but through explicit management of their paths
...
- Legacy-Id: 6980
2013-12-18 13:18:58 +00:00
Ole Laursen
2cefdd7410
Add WSGI application to settings to make it use the same application
...
definition as live (it probably doesn't matter at the moment though)
- Legacy-Id: 6979
2013-12-18 13:06:39 +00:00
Ole Laursen
ce3e6c59de
._meta.module_name -> ._meta.model_name
...
- Legacy-Id: 6978
2013-12-18 12:07:04 +00:00
Ole Laursen
896da07311
Disable XViewMiddleware, it has been moved in Django 1.6 and it's not
...
clear whether it's serving a useful purpose
- Legacy-Id: 6977
2013-12-18 12:01:24 +00:00
Ole Laursen
e348600bcb
raw_post_data -> body
...
- Legacy-Id: 6976
2013-12-18 11:52:21 +00:00
Ole Laursen
1dc860236f
Delete ADMIN_MEDIA_PREFIX which is now gone in Django, add a pattern to the static serving so a debug/test server serves the admin static files
...
- Legacy-Id: 6975
2013-12-18 11:45:36 +00:00
Ole Laursen
41075bb3b5
Delete old Django 1.1 admin media from static/, instead import them with svn:external property (on static/) from ../django/contrib/admin/static/ - it would be a bit more obvious with a symlink, but that may cause trouble for people on Windows or if the webserver is set up to not allow symlinks
...
- Legacy-Id: 6974
2013-12-18 11:22:05 +00:00
Ole Laursen
8c35b3e6da
Fix the send SDO reminder admin template to not rely on adminmedia which is now gone, also fix up the formatting and add a title
...
- Legacy-Id: 6973
2013-12-18 11:18:24 +00:00
Ole Laursen
1df2a37a9f
Remove dead admin templates from when there was an SDOs model
...
- Legacy-Id: 6972
2013-12-18 11:07:39 +00:00
Ole Laursen
8afd3fa5b7
Rewrite wg_menu tag to use simple_tag instead of a full template Node,
...
also fix a bug in the cache apparently not being filled in correctly
- Legacy-Id: 6971
2013-12-18 10:25:59 +00:00
Ole Laursen
e2e6c243a1
Remove the complicated tag processing from ballot_icon, instead just
...
decorate the function with @simple_tag(takes_context=True)
- Legacy-Id: 6970
2013-12-18 10:22:30 +00:00
Ole Laursen
35520c8473
Enable clickjacking prevention middleware
...
- Legacy-Id: 6969
2013-12-18 10:14:47 +00:00
Ole Laursen
7f277a8fbb
Replace user.get_profile() with user.person, the profile stuff is deprecated since Django 1.5
...
- Legacy-Id: 6968
2013-12-18 10:13:40 +00:00
Ole Laursen
ea24f5c3bd
Import slugify from django.utils.text (introduced in Django 1.5)
...
- Legacy-Id: 6967
2013-12-18 10:00:58 +00:00
Ole Laursen
d1782297ab
assertEquals -> assertEqual in tests, the former is deprecated
...
- Legacy-Id: 6964
2013-12-17 12:52:24 +00:00
Ole Laursen
42ade6273c
Turn on CSRF protection - all forms must from now on have a {% csrf_token %}
...
- Legacy-Id: 6963
2013-12-17 12:50:24 +00:00
Ole Laursen
52a0825985
Take advantage of new include tag that can combine the include with a
...
"with foo=bar" instead of having separate "with" tags
- Legacy-Id: 6962
2013-12-17 11:08:58 +00:00
Ole Laursen
36dd439027
Rewrite ifequal/endifequal template tags to if tags with ==/!=
...
- Legacy-Id: 6961
2013-12-17 10:42:34 +00:00
Ole Laursen
d66ac15fc2
Rewrite a bunch of HttpResponseRedirect + url reverse calls to instead
...
take advantage of the redirect shortcut (introduced in Django 1.1)
- Legacy-Id: 6960
2013-12-17 10:23:42 +00:00
Ole Laursen
72e36bde55
Don't output coverage data if there are test failures
...
- Legacy-Id: 6959
2013-12-17 10:08:12 +00:00
Ole Laursen
84a9f49053
mimetype -> content_type (mimetype is deprecated)
...
- Legacy-Id: 6945
2013-12-16 16:53:47 +00:00
Ole Laursen
85ab33533f
Move feed redirect for feed_urls.py
...
- Legacy-Id: 6944
2013-12-16 16:35:07 +00:00
Ole Laursen
e6b12350d2
Port IPR and liaisons feed setup to new feed API too
...
- Legacy-Id: 6943
2013-12-16 16:33:18 +00:00
Ole Laursen
5021ed5629
Port feed setup to new feed API where each feed is a class-based view
...
- Legacy-Id: 6939
2013-12-16 16:29:22 +00:00
Ole Laursen
d86789608a
Remove use of "groupgroup" fixture from Secretariat apps, it looks
...
like they don't actually depend on it, and the fixture itself is
unfortunately not complete so Django refuses to load it
- Legacy-Id: 6938
2013-12-16 13:16:29 +00:00
Ole Laursen
beda4bafcd
Fix bug with coverage testing
...
- Legacy-Id: 6937
2013-12-16 13:06:41 +00:00
Ole Laursen
0c2c5a7573
Rewrite url tags in Secretariat templates to new syntax
...
- Legacy-Id: 6936
2013-12-16 13:05:38 +00:00
Ole Laursen
7aa3737c3b
Reenable RemoteUserMiddleware, it turns out the Secretariat tests are
...
using REMOTE_USER to auth instead of logging in - instead include a
little middleware class that adds the REMOTE_USER header during
testing.
Also fix problem with the empty test_label hack not working with
double-dotted Secretariat apps.
- Legacy-Id: 6935
2013-12-16 12:59:27 +00:00
Ole Laursen
e1025e67ae
Fix some oddities in secauth.py
...
- Legacy-Id: 6934
2013-12-16 12:48:43 +00:00
Ole Laursen
77e03c7355
Fix bugs in stream edit test
...
- Legacy-Id: 6933
2013-12-16 11:55:15 +00:00
Ole Laursen
3d7b349e20
Remove group/tests/, it only contains two tests (on a fixture, not
...
really on any IETF code) and it clashes with the tests in group/tests.py
- Legacy-Id: 6932
2013-12-16 11:53:10 +00:00
Ole Laursen
8017c8eaf2
Fix a bunch of test errors, apparently the Textarea widget in Django
...
now outputs a newline in the beginning - this doesn't seem make a
difference for browsers, but it means testing with PyQuery needs to
strip the text to be able to check accurately
- Legacy-Id: 6931
2013-12-16 11:47:32 +00:00
Ole Laursen
2eb8566d2f
Remove : after label_tag in templates, the colon is now included in the label_tag itself
...
- Legacy-Id: 6930
2013-12-13 17:34:05 +00:00
Ole Laursen
b94e110a29
Disable the caching template loader again, interesting as may be, it
...
turns out to be really annoying when developing as it is not clever
enough to do cache invalidation, so changing a template and retesting
requires restarting the dev server
- Legacy-Id: 6929
2013-12-13 17:30:39 +00:00
Ole Laursen
2dc4454772
Fix problem with dbtemplate loader, it wasn't declaring itself as usable
...
- Legacy-Id: 6928
2013-12-13 17:27:22 +00:00
Ole Laursen
0006b9ddcc
Make sure all model forms have a Meta.fields attribute
...
- Legacy-Id: 6927
2013-12-13 17:20:02 +00:00
Ole Laursen
1cb6e701eb
Enable the caching template loader for the file based templates, as
...
recommended by the Django documentation
- Legacy-Id: 6926
2013-12-13 17:00:52 +00:00
Ole Laursen
e324f5551e
Fix some {% url %} tags with commas between arguments, which is not valid with the new url syntax
...
- Legacy-Id: 6925
2013-12-13 17:00:12 +00:00
Ole Laursen
3ba9424845
Fix invalid HTML in nomcom template
...
- Legacy-Id: 6924
2013-12-13 16:48:56 +00:00
Ole Laursen
3febf7d216
Fix odd boolean calculation in nomcom view
...
- Legacy-Id: 6923
2013-12-13 16:48:37 +00:00