[Patchew-devel] [PATCH 3/3] drop maintainers property

Paolo Bonzini posted 3 patches 6 years, 6 months ago
[Patchew-devel] [PATCH 3/3] drop maintainers property
Posted by Paolo Bonzini 6 years, 6 months ago
This is not needed after the database is migrated to the new format.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 api/models.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/api/models.py b/api/models.py
index 180d6e3..f663783 100644
--- a/api/models.py
+++ b/api/models.py
@@ -126,8 +126,7 @@ class Project(models.Model):
     def maintained_by(self, user):
         if user.is_superuser:
             return True
-        if self.maintainers.filter(id=user.id).exists() or \
-                self.get_property("maintainers", []):
+        if self.maintainers.filter(id=user.id).exists():
             return True
         return False
 
-- 
2.14.3

_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel