Created
June 3, 2021 18:09
-
-
Save Allwin12/74a13df2772b0ea099010b57ceb77008 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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