Ole Laursen
3fa1834986
Remove Person.objects.by_username/by_email for now - they aren't actually in use, the email one looks suspicious in that it takes the email from the User object, and the username one does not seem generally useful; also remove the unit tests of these two which was relying on an incomplete fixture
...
- Legacy-Id: 7029
2013-12-20 12:13:02 +00:00
Ole Laursen
fa489ce37a
Upgrade Dajaxice to latest version from github (0.5.5) to make meeting agenda code work with CSRF, with url conf import fix and using json instead of deprecated simplejson from Django - add a simple view to serve dajaxice.core.js which we need because we are not using the staticfiles collection step (apparently Dajaxice hooks into that through a somewhat complicated hack)
...
- Legacy-Id: 7028
2013-12-20 11:59:09 +00:00
Ole Laursen
88860edba4
Use user_is_person to determine whether user is schedule owner in
...
agenda AJAX, instead of complicated try except
- Legacy-Id: 7027
2013-12-20 11:55:25 +00:00
Ole Laursen
fdb6baf4e6
Use collections.OrderedDict instead of the SortedDict bundled with Django
...
- Legacy-Id: 7026
2013-12-20 11:00:07 +00:00
Ole Laursen
38c153c03d
Remove usage of distinct(field) in meeting/helpers.py, Django
...
complains that it doesn't work on MySQL and the two uses appear
superfluous anyway since they only return the field being distincted
- Legacy-Id: 7018
2013-12-19 16:06:37 +00:00
Ole Laursen
2cc2323b06
Speed up IPR list by adding a prefetch_related() call
...
- Legacy-Id: 7017
2013-12-19 11:53:41 +00:00
Ole Laursen
defb116721
Use prefetch_related to reduce the number of queries on the search page and in idindex generation, adjust a couple of members on Document slightly to not filter on relations (filtering doesn't work with prefetch_related)
...
- Legacy-Id: 6992
2013-12-18 16:58:34 +00:00
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
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
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