Skip to content

Commit

Permalink
chore: Add Project model to admin site
Browse files Browse the repository at this point in the history
  • Loading branch information
DonnieBLT committed Jul 16, 2024
1 parent cf875b2 commit e39ffe0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions website/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
Monitor,
Payment,
Points,
Project,
Subscription,
Transaction,
UserProfile,
Expand Down Expand Up @@ -293,7 +294,21 @@ class ChatBotLogAdmin(admin.ModelAdmin):
list_display = ("id", "question", "answer", "timestamp")


class ProjectAdmin(admin.ModelAdmin):
list_display = (
"id",
"name",
"description",
"url",
"created",
"modified",
)

search_fields = ["name", "description", "url"]


# Register all models with their respective admin classes
admin.site.register(Project, ProjectAdmin)
admin.site.register(ContributorStats)
admin.site.register(Bid, BidAdmin)
admin.site.register(UserProfile, UserProfileAdmin)
Expand Down

0 comments on commit e39ffe0

Please sign in to comment.