Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazarii committed Jan 3, 2024
1 parent 84f0efb commit 81e5542
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions web/actions/migrations/0003_alter_action_action.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 4.2.8 on 2024-01-03 11:47

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
('actions', '0002_alter_action_action'),
]

operations = [
migrations.AlterField(
model_name='action',
name='action',
field=models.CharField(
choices=[('update_avatar', 'Update Avatar'), ('create_article', 'Create Article')], max_length=50
),
),
]
2 changes: 1 addition & 1 deletion web/user_profile/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_serializer_class(self):
return serializers.UserSerializer

def get_object(self):
obj = UserQueryService.get_user_by_id(self.request.user.id)
obj = UserQueryService().get_user_by_id(self.request.user.id)
self.check_object_permissions(self.request, obj)
return obj

Expand Down

0 comments on commit 81e5542

Please sign in to comment.