Created
December 18, 2017 13:28
-
-
Save solidpple/c883cb5aa325b5b08d8ff533661a8d98 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 .models import Question | |
class QuestionAdmin(admin.ModelAdmin): | |
fieldsets = [ | |
(None, {'fields': ['question_text']}), | |
('Date information', {'fields': ['pub_date']}), | |
] | |
admin.site.register(Question, QuestionAdmin) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment