mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-02-02 01:44:40 +00:00
Add extsources to django admin
This commit is contained in:
parent
3d38fbb9b0
commit
342ba713a4
10
web/extsources/admin.py
Normal file
10
web/extsources/admin.py
Normal file
@ -0,0 +1,10 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from extsources.models import ExternalSource
|
||||
|
||||
|
||||
class ExternalSourceAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'url', 'description', 'last_success', 'last_modified', 'etag', 'active')
|
||||
list_editable = ['active']
|
||||
|
||||
admin.site.register(ExternalSource, ExternalSourceAdmin)
|
Loading…
x
Reference in New Issue
Block a user