Skip to content

Commit

Permalink
Better admin display
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanpingle committed Feb 19, 2023
1 parent 0e9bf83 commit 27e0f4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions swd/main/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def delete_students(modeladmin, request, queryset):
@admin.register(Student)
class StudentAdmin(ExportMixin, admin.ModelAdmin):
search_fields = ['name', 'bitsId', 'user__username']
list_display = ['name', 'bitsId', 'gender', 'phone']
actions = [add_new_students, delete_students ]
resource_class = StudentResource
def get_export_formats(self):
Expand Down

0 comments on commit 27e0f4a

Please sign in to comment.