Skip to content

Commit

Permalink
fixes missing definition of initial variable
Browse files Browse the repository at this point in the history
  • Loading branch information
smirolo committed Jul 29, 2024
1 parent 8cd53e5 commit 650cf21
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions signup/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def find_candidate(self, **cleaned_data):
email = cleaned_data.get('email')
phone = cleaned_data.get('phone')

user = None
if username:
try:
user = self.model.objects.find_user(username)
Expand Down
21 changes: 21 additions & 0 deletions testsite/fixtures/default-db.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,4 +292,25 @@
"username": "xia18"
},
"model": "auth.User", "pk": 18
},
{
"fields": {
"slug": "testsite",
"cors_restricted": false,
"authentication": 0,
"registration": 3,
"session_backend": 2,
"entry_point": "http://localhost:8040",
"enc_key": ""
},
"model": "rules.App", "pk": 1
},
{ "fields": {
"app": 1,
"rank": 1,
"path": "/",
"rule_op": 0,
"is_forward": false
},
"model": "rules.Rule", "pk": 1
}]
2 changes: 1 addition & 1 deletion testsite/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ social-auth-app-django==5.2.0 # 5.2.0 drops support for Django<3.2
# testsite-only
coverage==7.2.1
django-extensions==3.2.1
djaodjin-rules==0.4.1
djaodjin-rules==0.4.7
gunicorn==20.1.0
whitenoise==6.4.0

Expand Down

0 comments on commit 650cf21

Please sign in to comment.