Merge pull request #144 from CDC-IITDH/gowtham/check-ppo-tier
Checking PPO tier in Placement Rules
This commit is contained in:
commit
d9939885fc
|
@ -184,6 +184,10 @@ def PlacementApplicationConditions(student, placement):
|
||||||
if int(i.placement.tier) < int(placement.tier):
|
if int(i.placement.tier) < int(placement.tier):
|
||||||
return False, "Can't apply for this tier"
|
return False, "Can't apply for this tier"
|
||||||
|
|
||||||
|
for i in PPO:
|
||||||
|
if int(i.placement.tier) < int(placement.tier):
|
||||||
|
return False, "Can't apply for this tier"
|
||||||
|
|
||||||
if student.degree != 'bTech' and not placement.rs_eligible:
|
if student.degree != 'bTech' and not placement.rs_eligible:
|
||||||
raise PermissionError("Can't apply for this placement")
|
raise PermissionError("Can't apply for this placement")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue