DevClad-Inc / devclad

Line too long FLK-E501
Style
Minor
a year ago2 years old
line too long (95 > 88 characters)
149        """
150        if "allauth" in settings.INSTALLED_APPS:
151
152            # When `is_active` of a user is set to False, allauth tries to return template html153            # which does not exist. This is the solution for it. See issue #264.
154            try:
155                return self.get_auth_user_using_allauth(username, email, password)
line too long (104 > 88 characters)
 22User = get_user_model()
 23
 24# Custom RegistrationSerializer; with first and last name + possible future changes.
 25# From https://github.com/iMerica/dj-rest-auth/blob/master/dj_rest_auth/registration/serializers.py#L197 26class RegisterSerializer(serializers.Serializer):
 27    first_name = serializers.CharField(max_length=30, required=True, write_only=True)
 28    last_name = serializers.CharField(max_length=30, required=True, write_only=True)
line too long (91 > 88 characters)
 2
 3AUTH_PASSWORD_VALIDATORS = [
 4    {
 5        "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator", 6        "OPTIONS": {
 7            "user_attributes": ["first_name", "last_name", "email", "username"],
 8            "max_similarity": 0.6,
line too long (98 > 88 characters)
 15
 16User = get_user_model()
 17
 18"""using SP's pk to get reference to the user (organizer) and modify request data with username""" 19
 20
 21def JSONTimeZone(time):
line too long (108 > 88 characters)
 9#! so, the code contains fixes for that
10
11"""
12- using invite_profile to reference the SP user; not a nasty workaround but modification from existing code.13"""
14
15