Skip to content

Commit

Permalink
Docs: Add help text to last_active and streak_count fields
Browse files Browse the repository at this point in the history
  • Loading branch information
SverreNystad committed Jan 5, 2024
1 parent 2cb8327 commit 890aae9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ class User(AbstractUser):
username, first_name, last_name, email, password, groups, user_permissions, is_staff, is_active, is_superuser, last_login, date_joined
"""

last_active = models.DateTimeField(auto_now=True)
streak_count = models.IntegerField(default=0)
last_active = models.DateTimeField(
auto_now=True, help_text="Last time the user fulfilled the daily task"
)
streak_count = models.IntegerField(default=0, help_text="Current streak count")

def __str__(self):
return self.username

0 comments on commit 890aae9

Please sign in to comment.