Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
Add is_bot flag to BlossomUser model
Browse files Browse the repository at this point in the history
  • Loading branch information
TimJentzsch committed Dec 28, 2021
1 parent d57953e commit 0806e81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class Meta:
"last_update_time",
"accepted_coc",
"blacklisted",
"is_bot",
)


Expand Down
3 changes: 3 additions & 0 deletions authentication/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class Meta:
# (not to be confused with the base Django staff account.)
is_grafeas_staff = models.BooleanField(default=False)

# A boolean that denotes whether a user is a bot account.
is_bot = models.BooleanField(default=False)

# Each person is allowed one API key, but advanced security around this
# means that it is not fully implemented at this time. It is used by
# u/transcribersofreddit and the other bots, though.
Expand Down

0 comments on commit 0806e81

Please sign in to comment.