Skip to content

Commit

Permalink
The active user model does not need and does not have a github_id.
Browse files Browse the repository at this point in the history
No-Issue

Signed-off-by: James Tanner <tanner.jc@gmail.com>
  • Loading branch information
jctanner committed Aug 25, 2023
1 parent 0fbe690 commit 214c903
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions galaxy/api/serializers/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
USER_FIELDS = (
'id', 'url', 'related', 'summary_fields', 'created', 'modified',
'username', 'staff', 'full_name', 'date_joined', 'avatar_url',
'github_id'
)

__all__ = [
Expand Down Expand Up @@ -61,7 +60,7 @@ class UserSerializer(BaseSerializer):

class Meta:
model = User
fields = USER_FIELDS
fields = USER_FIELDS + ('github_id',)

def get_related(self, obj):
if not obj or not obj.is_authenticated:
Expand Down

0 comments on commit 214c903

Please sign in to comment.