summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-08-09 15:11:42 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-08-09 15:11:42 +0200
commit47aaeb6c3e86410e2edbd8a2647f191593a22b80 (patch)
tree71cc1456c2f6e3db6af5e7d6ca4ec03cabafbb71
parent34317f3c96ff46ff9483c8c2a2d8c947d9b563ea (diff)
downloadComm-on-net-47aaeb6c3e86410e2edbd8a2647f191593a22b80.tar.bz2
Comm-on-net-47aaeb6c3e86410e2edbd8a2647f191593a22b80.zip
Admin configuration
-rw-r--r--commcrawler/admin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/commcrawler/admin.py b/commcrawler/admin.py
index aedeee9..9f5003b 100644
--- a/commcrawler/admin.py
+++ b/commcrawler/admin.py
@@ -16,9 +16,10 @@ from commcrawler import models
class CrawlAdmin(admin.ModelAdmin):
model = models.Crawl
list_display = ("name", "status", "target_nb", "created", "started",
- "ended", "progress")
+ "crawl_ended", "ended", "progress")
list_filter = ("status",)
- readonly_fields = ("created", "started", "crawl_ended", "ended")
+ exclude = ("progression","created", "started", "crawl_ended", "ended")
+ readonly_fields = ()
form = make_ajax_form(model, {'targets': 'target'})