Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe committed Nov 11, 2023
1 parent a841b2d commit 89e811b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions user/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ class UserDetailsSerializer(serializers.ModelSerializer):
"""
Serializer pre User model spolu s Profile modelom
"""
OTHER_SCHOOL_CODE = 0

profile = ProfileCreateSerializer(label="")
new_school_description = serializers.CharField(
write_only=True, max_length=200, allow_blank=True, required=False)
Expand Down Expand Up @@ -165,8 +167,6 @@ class RegisterSerializer(UserDetailsSerializer):
new_school_description = serializers.CharField(write_only=True,
max_length=200, allow_blank=True)

OTHER_SCHOOL_CODE = 0

class Meta:
model = get_user_model()
fields = ('pk', 'email', 'profile', 'password1',
Expand Down
2 changes: 0 additions & 2 deletions webstrom/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@

ACCOUNT_ADAPTER = 'user.adapter.CustomAccountAdapter'

REST_SESSION_LOGIN = True


REST_AUTH = {
'LOGIN_SERIALIZER': 'user.serializers.LoginSerializer',
Expand Down

0 comments on commit 89e811b

Please sign in to comment.