File: admin.py

package info (click to toggle)
graphite-web 1.1.8-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,592 kB
  • sloc: javascript: 86,823; python: 11,977; sh: 61; makefile: 50
file content (11 lines) | stat: -rw-r--r-- 268 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
from django.contrib import admin
from graphite.account.models import Profile,MyGraph


class MyGraphAdmin(admin.ModelAdmin):
    list_display = ('profile','name')
    list_filter = ('profile',)


admin.site.register(Profile)
admin.site.register(MyGraph, MyGraphAdmin)