Skip to content

Commit

Permalink
Merge pull request #195 from dara-network/App_User_list_updates
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy authored Nov 8, 2023
2 parents 6e9005d + 92dfe9f commit eaec380
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 0 additions & 3 deletions app_users/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ class AppUserAdmin(admin.ModelAdmin):
"phone_number",
"balance",
"is_paying",
"is_anonymous",
"is_disabled",
"created_at",
"upgraded_from_anonymous_at",
]
search_fields = [
"uid",
Expand Down
10 changes: 6 additions & 4 deletions app_users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,20 @@ def get_or_create_firebase_user_by_email(email: str) -> tuple[auth.UserRecord, b
class AppUser(models.Model):
uid = models.CharField(max_length=255, unique=True)

display_name = models.TextField(default="", blank=True)
display_name = models.TextField("name", blank=True)
email = models.EmailField(null=True, blank=True)
phone_number = PhoneNumberField(null=True, blank=True)
balance = models.IntegerField()
balance = models.IntegerField("bal")
is_anonymous = models.BooleanField()
is_disabled = models.BooleanField(default=False)
photo_url = CustomURLField(default="", blank=True)

stripe_customer_id = models.CharField(max_length=255, default="", blank=True)
is_paying = models.BooleanField(default=False)
is_paying = models.BooleanField("paid", default=False)

created_at = models.DateTimeField(editable=False, blank=True, default=timezone.now)
created_at = models.DateTimeField(
"created", editable=False, blank=True, default=timezone.now
)
upgraded_from_anonymous_at = models.DateTimeField(null=True, blank=True)

disable_safety_checker = models.BooleanField(default=False)
Expand Down

0 comments on commit eaec380

Please sign in to comment.