Merge remote-tracking branch 'origin/prednasky' into stable
This commit is contained in:
		
						commit
						1298a3f9c4
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -14,8 +14,8 @@ def newPrednaska(request): | |||
|             for i in request.POST: | ||||
|               if i[0] == 'q': | ||||
|                 hlasovani = Hlasovani() | ||||
|                 print(i[1]) | ||||
|                 hlasovani.prednaska = Prednaska.objects.filter(pk = int(i[1]))[0] | ||||
|                 print("q:"+i[1:]) | ||||
|                 hlasovani.prednaska = Prednaska.objects.filter(pk = int(i[1:]))[0] | ||||
|                 hlasovani.body = int(request.POST[i]) | ||||
|                 hlasovani.ucastnik = jmeno | ||||
|                 hlasovani.save() | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Bc. Petr Pecha
						Bc. Petr Pecha