[damned-lies] Update from doap file when saving module in admin



commit f63d3e49b6bbee61f23fb98f49a09482e18099fd
Author: Claude Paroz <claude 2xlibre net>
Date:   Thu Oct 8 21:31:24 2020 +0200

    Update from doap file when saving module in admin

 stats/admin.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/stats/admin.py b/stats/admin.py
index bbe78dd7..06c19409 100644
--- a/stats/admin.py
+++ b/stats/admin.py
@@ -6,6 +6,7 @@ from django.db import transaction
 from django.http import HttpResponseRedirect
 from django.shortcuts import render
 
+from stats.doap import update_doap_infos
 from stats.models import (
     Statistics, Information, PoFile, Module, Branch, Domain, Category,
     CategoryName, Release,
@@ -92,6 +93,7 @@ class ModuleForm(forms.ModelForm):
             for branch in instance.get_branches():
                 # Force checkout and updating stats
                 branch.save()
+        update_doap_infos(instance)
         return instance
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]