Commit graph

118 commits

Author SHA1 Message Date
Benedikt Willi
0199ac962a Added Django 4.1 & 4.2 support 2023-06-08 10:19:27 +02:00
Frank Wiles
e9e866a289 Bump version for release 2023-02-13 08:50:15 -06:00
Benedikt Willi
40fa4acdb4
Update middleware.py
Use reverse_lazy instead of reverse, as reverse('tos_check_tos') can return the URL in a wrong language (the language the current thread is in, instead of the language of the users request) in combination with i18n.
2023-02-10 16:17:59 +01:00
blag
d2713361cd
Fix one last call 2022-12-30 18:23:33 -07:00
blag
2c1ecc32a5
Update tests 2022-12-30 15:18:05 -07:00
blag
6589aeeaf5
Fix signal handler 2022-12-30 14:45:01 -07:00
blag
c21751e0f7
Refactor middleware to enable an easier time extending skip checks 2022-12-29 01:25:33 -07:00
blag
1d951c0af9
Use f-strings where we can 2022-12-29 01:25:33 -07:00
blag
bc68dbf08a
Moar f-strings! 2022-12-26 22:49:25 -07:00
blag
ee3d1295f3
Put the <h2> back 2022-12-26 22:48:54 -07:00
blag
679d71f3ac
Keep using blocktrans for Django 3 compatibility 2022-12-26 22:48:37 -07:00
blag
1af6316b78
Don't use removed unicode() function 2022-12-26 22:42:31 -07:00
blag
13d5070910
Fix blocktrans variable and tag name 2022-12-26 22:42:31 -07:00
blag
3e5ede7635
Quick template fix 2022-12-26 22:42:31 -07:00
Frank Wiles
634afbbd7e Update to 1.0.0 now with Django 4.0 support 2022-02-08 10:40:36 -06:00
blag
766771ab0f
Properly initialize middleware 2021-12-20 02:20:11 -08:00
blag
bae4684bdf
Change how middleware tests for is_ajax 2021-12-20 02:11:24 -08:00
blag
eb863621ff
Replace django.conf.urls.url with django.urls.re_path 2021-12-20 02:03:23 -08:00
blag
eb25a40c07
Use response.url instead of digging through mock response headers 2021-12-20 01:57:13 -08:00
blag
09a71c69d7
Remove all unnecessary compatability shims 2021-12-20 01:42:37 -08:00
blag
6420a185d2
Python 3 only - everything is unicode 2021-12-20 00:53:23 -08:00
blag
f2a0449766
Use gettext_lazy over deprecated ugettext_lazy 2021-12-20 00:50:25 -08:00
blag
63f99d57a3
Remove deprecated default_app_config 2021-12-20 00:50:25 -08:00
hhummel
7d97b690f2 Update django3 2021-02-09 12:48:51 -05:00
Frank Wiles
6bd5bdc9f1 Bump version for release 2020-10-08 15:39:57 -05:00
Nicholas Serra
ec100d0a12
Fix and tests for cache invalidation issue 2020-10-04 18:06:09 -04:00
Frank Wiles
05d6b262a4 Increment version for upload 2020-07-29 09:12:35 -05:00
Nicholas Serra
9250f2d945
0.8.0 2020-04-10 12:05:36 -04:00
Nicholas Serra
deda669daa
Put these back to cascade 2020-04-03 22:44:19 -04:00
Nicholas Serra
9d312c8697
Django 2.0 compat 2020-04-03 22:41:55 -04:00
Ali Karbassi
06d822e124
Fixed on_delete missing error in django 2.x 2020-04-03 20:29:33 -04:00
Drew Hubl
0637b4d021 Add a few more tests to increase coverage 2017-06-01 12:29:52 -06:00
Drew Hubl
d6a1392b3d Add test for multiple UserAgreements 2017-06-01 12:29:52 -06:00
Drew Hubl
e38027aa15 Avoid creating duplicate UserAgreements 2017-06-01 12:29:52 -06:00
Drew Hubl
eb24832a45 Use i18n in templates 2017-06-01 12:29:52 -06:00
Drew Hubl
4011bba68f Use HTML buttons instead of inputs to enable i18n 2017-06-01 12:29:52 -06:00
Drew Hubl
0b6722761d Fix hard-coded field names 2017-06-01 12:29:52 -06:00
Nicholas Serra
1141675bf6 Merge pull request #29 from blag/middleware-redirect-to
Make middleware keep track of the next query parameter and add a test for it
2017-05-31 23:18:54 -04:00
Drew Hubl
591a3431c4 Make middleware keep track of the next query parameter and add a test for it 2017-05-31 11:23:38 -06:00
blag
89ef6c9a7f Add option/fix for user models with UUIDs (#28)
* Add option/fix for user models with UUIDs

* Remove unnecessary configuration
2017-05-31 13:04:46 -04:00
Nicholas Serra
5668d22553
Bugfix patch version bump 2017-04-04 15:44:20 -04:00
Nicholas Serra
cfc6615690
2.6 format compat 2017-04-04 14:51:23 -04:00
Nicholas Serra
b826c969ad
get_cache compat method 2017-04-04 14:22:09 -04:00
Nicholas Serra
c7fa58ffe3
Better import for override_settings 2017-04-04 14:21:50 -04:00
Nicholas Serra
b04d40010a
Some tests around middleware option 2017-04-04 13:47:12 -04:00
Nicholas Serra
fe5f5b4790
Set session vars in middleware 2017-04-04 13:46:43 -04:00
Nicholas Serra
e07fb710a8
Generic index view for testing 2017-04-04 13:46:03 -04:00
Nicholas Serra
9b9250b5c3
Clear up user roles in tests 2017-04-04 13:45:49 -04:00
Xaver Y.R. Chen
b81f85d630 Fix Django 1.10 issues 2017-03-27 00:25:54 +08:00
Nicholas Serra
5c483ac07a
Middleware response fix #23 2017-02-07 22:22:23 -05:00