@@ -797,6 +797,8 def operation(request, id_camp=None): | |||
|
797 | 797 | campaigns = Campaign.objects.all().order_by('-start_date') |
|
798 | 798 | |
|
799 | 799 | if not campaigns: |
|
800 | kwargs['title'] = 'No Campaigns' | |
|
801 | kwargs['suptitle'] = 'Empty' | |
|
800 | 802 | return render(request, 'operation.html', {}) |
|
801 | 803 | |
|
802 | 804 | id_camp = campaigns[0].id |
@@ -850,6 +852,7 def operation_search(request, id_camp=None, location_play = None): | |||
|
850 | 852 | kwargs = {} |
|
851 | 853 | kwargs['title'] = 'All Campaigns' |
|
852 | 854 | kwargs['form'] = form |
|
855 | kwargs['details'] = True | |
|
853 | 856 | return render(request, 'operation.html', kwargs) |
|
854 | 857 | |
|
855 | 858 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now