fixed typo
This commit is contained in:
parent
8fe297c490
commit
1c3103ed4a
|
@ -420,7 +420,7 @@ def addInternship(request):
|
||||||
internship.is_work_from_home = False
|
internship.is_work_from_home = False
|
||||||
|
|
||||||
if ALLOWED_BATCH in data[ALLOWED_BATCH] and data[ALLOWED_BATCH] is None or json.loads(data[ALLOWED_BATCH]) == "":
|
if ALLOWED_BATCH in data[ALLOWED_BATCH] and data[ALLOWED_BATCH] is None or json.loads(data[ALLOWED_BATCH]) == "":
|
||||||
raise ValueError('Allowed Branch cannot be empty')
|
raise ValueError('Allowed Batches cannot be empty')
|
||||||
elif ALLOWED_BATCH in data[ALLOWED_BATCH] and set(json.loads(data[ALLOWED_BATCH])).issubset(BATCHES):
|
elif ALLOWED_BATCH in data[ALLOWED_BATCH] and set(json.loads(data[ALLOWED_BATCH])).issubset(BATCHES):
|
||||||
internship.allowed_batch = json.loads(data[ALLOWED_BATCH])
|
internship.allowed_batch = json.loads(data[ALLOWED_BATCH])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue