From a2860f4ce4ff3a33525bb33c682678d775b78bcb Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 05 2016 17:08:54 +0000 Subject: Introduce an empty priority This will fix the current behavior where when you add priorities and suddenly editing the metadata of a ticket changes the priority as well since there is no option for empty priority --- diff --git a/pagure/ui/repo.py b/pagure/ui/repo.py index f91cf6c..cd2b1ef 100644 --- a/pagure/ui/repo.py +++ b/pagure/ui/repo.py @@ -1017,6 +1017,7 @@ def update_priorities(repo, username=None): priorities = {} for cnt in range(len(weights)): priorities[weights[cnt]] = titles[cnt] + priorities[''] = '' try: repo.priorities = priorities SESSION.add(repo)