Skip to content

Commit

Permalink
#1 fix : modify super user's required field (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
0321minji authored Aug 20, 2024
1 parent e1104f9 commit be403e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def create_user(self, email, password, name, dsId, dsName, **extra_fields):
user.save()
return user

def create_superuser(self, email, password, dsId, name,dsName , **extra_fields):
def create_superuser(self, email, password, name, dsId=None,dsName=None , **extra_fields):
#Django BaseUserManager의 기본
extra_fields.setdefault('is_superuser', True)
extra_fields.setdefault('is_staff', True)
Expand Down
2 changes: 2 additions & 0 deletions users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ def post(self,request):
# def get(self,request):
# user_lists= UserSelector
# 일단 특정 유저에 대한 detail api

class UserDetailApi(APIView):
permission_classes=(IsAuthenticated,)
class LandSerializer(serializers.ModelSerializer):
pk = serializers.IntegerField()
class Meta:
Expand Down

0 comments on commit be403e4

Please sign in to comment.