Skip to content

Commit

Permalink
admin: make organization join request state read-only; closes #2354
Browse files Browse the repository at this point in the history
  • Loading branch information
kiritofeng committed Dec 18, 2024
1 parent 80d7dcb commit 4db9ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judge/admin/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def has_change_permission(self, request, obj=None):

class OrganizationRequestAdmin(admin.ModelAdmin):
list_display = ('username', 'organization', 'state', 'time')
readonly_fields = ('user', 'organization', 'request_class')
readonly_fields = ('user', 'organization', 'state', 'request_class')

@admin.display(description=_('username'), ordering='user__user__username')
def username(self, obj):
Expand Down

0 comments on commit 4db9ef2

Please sign in to comment.