Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allocation form fix #56

Merged
merged 2 commits into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def allocationForm(request):
message = "Form is closed for now."
elif Allocation.objects.filter(email=student,period=alloc_form.period).exists():
allocation_id = Allocation.objects.filter(email=student,period=alloc_form.period).last()
message = "You have already filled the form for this period. with first preference:" + allocation_id.first_pref + " second preference:" + allocation_id.second_pref
message = "You have already filled the form for this period. with first preference:" + allocation_id.first_pref
elif request.method == "POST" and request.user.is_authenticated :
try:
period_obj = alloc_form.period
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Django==5.0.3
django_allauth==0.54.0
django_environ==0.10.0
django_import_export==3.2.0
gunicorn == 22.0.0
gunicorn==22.0.0
whitenoise==6.4.0
django-cloudinary-storage==0.3.0
django-admin-logs==1.0.2
Expand Down
Loading