1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-09 14:28:03 +00:00
py-i2phosts/pyi2phosts/extsources/admin.py

11 lines
327 B
Python
Raw Normal View History

2010-10-31 12:28:06 +00:00
from django.contrib import admin
2010-11-04 13:40:58 +00:00
from pyi2phosts.extsources.models import ExternalSource
2010-10-31 12:28:06 +00:00
class ExternalSourceAdmin(admin.ModelAdmin):
2015-10-26 18:55:35 +00:00
list_display = ('name', 'url', 'description', 'last_success', 'last_modified', 'etag', 'active')
list_editable = ['active']
2010-10-31 12:28:06 +00:00
admin.site.register(ExternalSource, ExternalSourceAdmin)