Ticket #9076: admin2.py

File admin2.py, 426 bytes (added by Leonidas, 11 years ago)

The admin interface settings

Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3from sys import maxint
4from django.contrib import admin
5from pointtec.transdigest import models
6
7class TranslationInline(admin.TabularInline):
8    model = models.Translation
9
10class MessageAdmin(admin.ModelAdmin):
11    ordering = ('text',)
12    list_per_page = maxint
13    search_fields = ('text',)
14    inlines = [TranslationInline]
15
16admin.site.register(models.Message, MessageAdmin)
Back to Top