Skip to content

Commit

Permalink
Add additional fields to UserProfileAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
DonnieBLT committed Mar 8, 2024
1 parent f01af0c commit a52d525
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion website/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,25 @@ class UserAdmin(ImportExportModelAdmin):
class UserProfileAdmin(admin.ModelAdmin):
list_display = (
"id",
"user",
"user_avatar",
"get_title_display",
"description",
"winnings",
"issues_hidden",
"btc_address",
"eth_address",
"bch_address",
"eth_address",
)
# add these and make them sortable
# follows = models.ManyToManyField("self", related_name="follower", symmetrical=False, blank=True)
# winnings = models.DecimalField(max_digits=10, decimal_places=2, null=True, blank=True)
# issue_upvoted = models.ManyToManyField(Issue, blank=True, related_name="upvoted")
# issue_downvoted = models.ManyToManyField(Issue, blank=True, related_name="downvoted")
# issue_saved = models.ManyToManyField(Issue, blank=True, related_name="saved")
# issue_flaged = models.ManyToManyField(Issue, blank=True, related_name="flaged")
# subscribed_domains = models.ManyToManyField(Domain, related_name="user_subscribed_domains")
# subscribed_users = models.ManyToManyField(User, related_name="user_subscribed_users")


admin.site.register(ContributorStats)
Expand Down

0 comments on commit a52d525

Please sign in to comment.