File tree Expand file tree Collapse file tree 11 files changed +10858
-59
lines changed Expand file tree Collapse file tree 11 files changed +10858
-59
lines changed Original file line number Diff line number Diff line change @@ -10,23 +10,16 @@ repos:
10
10
- id : check-added-large-files
11
11
12
12
- repo : https://github.com/pycqa/isort
13
- rev : 5.9.3
13
+ rev : 5.13.2
14
14
hooks :
15
15
- id : isort
16
16
17
17
- repo : https://github.com/psf/black
18
- rev : 21.7b0
18
+ rev : 25.1.0
19
19
hooks :
20
20
- id : black
21
21
22
- - repo : https://gitlab .com/pycqa/flake8
23
- rev : 3.9.2
22
+ - repo : https://github .com/pycqa/flake8
23
+ rev : ' 7.2.0 ' # pick a git hash / tag to point to
24
24
hooks :
25
- - id : flake8
26
- additional_dependencies : [
27
- " flake8-bugbear" ,
28
- " flake8-comprehensions" ,
29
- " flake8-mutable" ,
30
- " flake8-print" ,
31
- " flake8-simplify" ,
32
- ]
25
+ - id : flake8
Original file line number Diff line number Diff line change 1
1
def get_form ():
2
- from captcha .fields import ReCaptchaField
3
2
from django import forms
4
3
from django_comments .forms import CommentForm
4
+ from django_recaptcha .fields import ReCaptchaField
5
5
6
6
class CabCommentForm (CommentForm ):
7
7
your_name = forms .CharField (
Original file line number Diff line number Diff line change 2
2
3
3
from django import forms
4
4
from django .contrib import admin
5
- from django .utils .translation import ugettext_lazy as _
5
+ from django .utils .translation import gettext_lazy as _
6
6
7
7
from .models import Keyword
8
8
Original file line number Diff line number Diff line change 1
1
from django .conf import settings
2
2
from django .db import models
3
- from django .utils .translation import ugettext_lazy as _
3
+ from django .utils .translation import gettext_lazy as _
4
4
5
5
6
6
class Keyword (models .Model ):
Original file line number Diff line number Diff line change @@ -53,15 +53,15 @@ def user_url(user):
53
53
"allauth" ,
54
54
"allauth.account" ,
55
55
"allauth.socialaccount" ,
56
- "allauth.socialaccount.providers.bitbucket " ,
56
+ "allauth.socialaccount.providers.bitbucket_oauth2 " ,
57
57
"allauth.socialaccount.providers.github" ,
58
58
"allauth.socialaccount.providers.twitter" ,
59
59
"base" ,
60
60
"cab" ,
61
61
"comments_spamfighter" ,
62
62
"ratings" ,
63
63
"taggit" ,
64
- "captcha " ,
64
+ "django_recaptcha " ,
65
65
"django_extensions" ,
66
66
"rest_framework" ,
67
67
"django_htmx" ,
@@ -80,6 +80,7 @@ def user_url(user):
80
80
"django.contrib.flatpages.middleware.FlatpageFallbackMiddleware" ,
81
81
"ratelimitbackend.middleware.RateLimitMiddleware" ,
82
82
"django_htmx.middleware.HtmxMiddleware" ,
83
+ "allauth.account.middleware.AccountMiddleware" ,
83
84
)
84
85
85
86
TEMPLATES = [
Original file line number Diff line number Diff line change 9
9
"django.contrib.auth.middleware.AuthenticationMiddleware" ,
10
10
"django.contrib.messages.middleware.MessageMiddleware" ,
11
11
"django_htmx.middleware.HtmxMiddleware" ,
12
+ "allauth.account.middleware.AccountMiddleware" ,
12
13
)
13
14
14
15
24
25
"allauth" ,
25
26
"allauth.account" ,
26
27
"allauth.socialaccount" ,
27
- "allauth.socialaccount.providers.bitbucket " ,
28
+ "allauth.socialaccount.providers.bitbucket_oauth2 " ,
28
29
"allauth.socialaccount.providers.github" ,
29
30
"allauth.socialaccount.providers.twitter" ,
30
31
"base" ,
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments