from django.contrib import admin
from rango.models import Category,Page,Metrics,MetricData,Dimension

class PageAdmin(admin.ModelAdmin):
	list_display = ('title','category','url')

class CategoryAdmin(admin.ModelAdmin):
	prepopulated_fields = {'slug' : ('name',)}

admin.site.register(Category,CategoryAdmin)
admin.site.register(Page,PageAdmin)
admin.site.register(Metrics)
admin.site.register(MetricData)
admin.site.register(Dimension)
