Skip to content

Commit

Permalink
New Command Script: OWASP Project Upload (OWASP-BLT#3166)
Browse files Browse the repository at this point in the history
* command file added for upload project from csv for owasp org

* command file added for upload project from csv for owasp org

* command file added for upload project from csv for owasp org
  • Loading branch information
JisanAR03 authored Dec 28, 2024
1 parent 5f33485 commit 9a38e25
Show file tree
Hide file tree
Showing 4 changed files with 798 additions and 3 deletions.
20 changes: 20 additions & 0 deletions website/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
Blocked,
ChatBotLog,
Contribution,
Contributor,
Domain,
Hunt,
HuntPrize,
Expand All @@ -28,6 +29,7 @@
Post,
PRAnalysisReport,
Project,
Repo,
SlackIntegration,
Subscription,
Suggestion,
Expand Down Expand Up @@ -406,6 +408,22 @@ class ProjectAdmin(admin.ModelAdmin):
search_fields = ["name", "description", "slug"]


class RepoAdmin(admin.ModelAdmin):
list_display = (
"id",
"name",
"description",
"created",
"modified",
)
search_fields = ["name", "description"]


class ContributorAdmin(admin.ModelAdmin):
list_display = ("name", "github_id", "created")
search_fields = ["name", "github_id"]


class TagAdmin(admin.ModelAdmin):
list_display = ("name", "slug", "created")
prepopulated_fields = {"slug": ("name",)}
Expand Down Expand Up @@ -436,6 +454,8 @@ class PostAdmin(admin.ModelAdmin):


admin.site.register(Project, ProjectAdmin)
admin.site.register(Repo, RepoAdmin)
admin.site.register(Contributor, ContributorAdmin)
admin.site.register(Bid, BidAdmin)
admin.site.register(UserProfile, UserProfileAdmin)
admin.site.register(User, UserAdmin)
Expand Down
Loading

0 comments on commit 9a38e25

Please sign in to comment.