Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.contrib import admin
- from .models import Comment
- @admin.register(Comment)
- class CommentAdmin(admin.ModelAdmin):
- list_display = ('text', 'date_time_of_publication', 'to_place')
- search_fields = ('text',)
- list_filter = ('date_time_of_publication',)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement