Application: Check enough supports in status "pub" only.
This commit is contained in:
parent
cea2992ca0
commit
6c008488cf
@ -141,7 +141,10 @@ class Application(models.Model):
|
|||||||
Return True, if the application has enough supporters
|
Return True, if the application has enough supporters
|
||||||
"""
|
"""
|
||||||
min_supporters = int(config_get('application_min_supporters'))
|
min_supporters = int(config_get('application_min_supporters'))
|
||||||
|
if self.status == "pub":
|
||||||
return self.supporter.count() >= min_supporters
|
return self.supporter.count() >= min_supporters
|
||||||
|
else:
|
||||||
|
return True
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def missing_supporters(self):
|
def missing_supporters(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user