Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

from django.contrib.gis import admin 

from models import Entry, Tag 

 

class TagAdmin(admin.ModelAdmin): 

    pass 

 

class EntriesAdmin(admin.ModelAdmin): 

    date_hierarchy = 'published_on' 

    list_display = ('title', 'author', 'is_draft', 'published_on') 

    search_fields = ['title', 'summary', 'body'] 

 

admin.site.register(Entry, EntriesAdmin) 

admin.site.register(Tag, TagAdmin)