Skip to content

Instantly share code, notes, and snippets.

@Allwin12
Created June 3, 2021 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Allwin12/36ae03545c2bb89b0f13885f70af7076 to your computer and use it in GitHub Desktop.
Save Allwin12/36ae03545c2bb89b0f13885f70af7076 to your computer and use it in GitHub Desktop.
from django.contrib import admin
from app.models import Student
class StudentAdmin(admin.ModelAdmin):
model = Student
fields = (('name', 'address'), 'date_of_birth')
admin.site.register(Student, StudentAdmin)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment