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)
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)
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):
5
6User = get_user_model()
7
8#! the createsu creates the admin user but it sort of fucked up the pk/id sync of users and socialprofiles 9#! so, the code contains fixes for that
10
11"""
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
Docstring line lengths are recommended to be no greater than 79 characters.