j
1468ddbecb
- use absolute_imports - make use of six.moves - use exec instead of execfile - use list(dict) instead if dict.keys()
14 lines
292 B
Python
14 lines
292 B
Python
# -*- coding: utf-8 -*-
|
|
# vi:si:et:sw=4:sts=4:ts=4
|
|
from __future__ import division, print_function, absolute_import
|
|
|
|
from django.contrib import admin
|
|
|
|
from . import models
|
|
|
|
|
|
class PageAdmin(admin.ModelAdmin):
|
|
search_fields = ['name', 'body']
|
|
|
|
admin.site.register(models.Page, PageAdmin)
|
|
|