Commit f090af08 authored by Claude Paroz's avatar Claude Paroz

Register PoFile in admin

parent db90121a
...@@ -23,7 +23,7 @@ from django.contrib.admin import helpers ...@@ -23,7 +23,7 @@ from django.contrib.admin import helpers
from django.shortcuts import render from django.shortcuts import render
from django.utils.encoding import force_unicode from django.utils.encoding import force_unicode
from django import forms from django import forms
from stats.models import Statistics, Information, Module, Branch, Domain, Category, Release from stats.models import Statistics, Information, PoFile, Module, Branch, Domain, Category, Release
class BranchInline(admin.TabularInline): class BranchInline(admin.TabularInline):
model = Branch model = Branch
...@@ -123,7 +123,11 @@ class StatisticsAdmin(admin.ModelAdmin): ...@@ -123,7 +123,11 @@ class StatisticsAdmin(admin.ModelAdmin):
raw_id_fields = ('branch', 'domain', 'language', 'full_po', 'part_po') raw_id_fields = ('branch', 'domain', 'language', 'full_po', 'part_po')
inlines = [ InformationInline ] inlines = [ InformationInline ]
class PoFileAdmin(admin.ModelAdmin):
search_fields = ('path',)
admin.site.register(Statistics, StatisticsAdmin) admin.site.register(Statistics, StatisticsAdmin)
admin.site.register(PoFile, PoFileAdmin)
admin.site.register(Branch, BranchAdmin) admin.site.register(Branch, BranchAdmin)
admin.site.register(Domain, DomainAdmin) admin.site.register(Domain, DomainAdmin)
admin.site.register(Category, CategoryAdmin) admin.site.register(Category, CategoryAdmin)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment