Skip to content

Commit

Permalink
Merge pull request #3237 from jctanner/BACKPORT_SOCIAL_AUTH_FIX
Browse files Browse the repository at this point in the history
The active user model does not need and does not have a github_id. (#…
  • Loading branch information
jctanner authored Aug 25, 2023
2 parents b582b74 + c28d88a commit eff3d38
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 eff3d38

Please sign in to comment.