summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'})