Skip to content

Commit

Permalink
Merge pull request #803 from crowdbotics/qa
Browse files Browse the repository at this point in the history
Merge qa into master for production release
  • Loading branch information
driverdan authored Aug 22, 2024
2 parents ece83b6 + e0b7cbb commit 950506c
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 86 deletions.
6 changes: 3 additions & 3 deletions {{cookiecutter.project_slug}}/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ waitress = "~=2.1.2"
whitenoise = "~=6.7.0"
djangorestframework = "~=3.15.1"
django-bootstrap4 = "~=22.1"
django-allauth = "~=0.54.0"
django-allauth = "~=0.63.6"
django-extensions = "~=3.2.3"
packaging = "*"
pyyaml = "~=6.0"
pillow = "~=10.4.0"
pytest = "==8.3.1"
factory-boy = "==3.3.0"
google-cloud-secret-manager = "==2.20.1"
google-cloud-secret-manager = "==2.20.2"
google-auth = "==2.31.0"
google-cloud-storage = "==2.17.0"
google-cloud-storage = "==2.18.0"
pipenv = "*"
django-import-export = "*"
drf-spectacular = "~=0.26.4"
Expand Down
156 changes: 78 additions & 78 deletions {{cookiecutter.project_slug}}/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions {{cookiecutter.project_slug}}/home/api/v1/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from django.utils.translation import gettext_lazy as _
from allauth.account import app_settings as allauth_settings
from allauth.account.forms import ResetPasswordForm
from allauth.utils import email_address_exists, generate_unique_username
from allauth.utils import generate_unique_username
from allauth.account.utils import assess_unique_email
from allauth.account.adapter import get_adapter
from allauth.account.utils import setup_user_email
from rest_framework import serializers
Expand Down Expand Up @@ -38,7 +39,7 @@ def _get_request(self):
def validate_email(self, email):
email = get_adapter().clean_email(email)
if allauth_settings.UNIQUE_EMAIL:
if email and email_address_exists(email):
if email and assess_unique_email(email):
raise serializers.ValidationError(
_("A user is already registered with this e-mail address.")
)
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/home/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% raw %}
{% load staticfiles %}
{% load static %}
<!doctype html>
<html lang="en">
<head>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% raw %}
{% extends '../base.html' %}
{% load staticfiles %}
{% load static %}
{% load bootstrap4 %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'allauth.account.middleware.AccountMiddleware',
]

ROOT_URLCONF = '{{cookiecutter.project_slug}}.urls'
Expand Down Expand Up @@ -284,7 +285,7 @@
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"


# GCP config
# GCP config
def google_service_account_config():
# base64 encoded service_account.json file
service_account_config = env.str("GS_CREDENTIALS", "")
Expand Down

0 comments on commit 950506c

Please sign in to comment.