Fix: Řešení nemá hodnocení, ale hodnocení_set.
This commit is contained in:
		
							parent
							
								
									b667900672
								
							
						
					
					
						commit
						88af1e6752
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -29,10 +29,10 @@ | ||||||
| {# Hodnocení: #} | {# Hodnocení: #} | ||||||
| {# FIXME: Udělat jako formulář #} | {# FIXME: Udělat jako formulář #} | ||||||
| <h3>Hodnocení:</h3> | <h3>Hodnocení:</h3> | ||||||
| {% if object.hodnoceni.all %} | {% if object.hodnoceni_set.all %} | ||||||
| <table> | <table> | ||||||
| <tr><th>Problém</th><th>Body</th><th>Číslo pro body</th></tr> | <tr><th>Problém</th><th>Body</th><th>Číslo pro body</th></tr> | ||||||
| {% for h in object.hodnoceni.all %} | {% for h in object.hodnoceni_set.all %} | ||||||
| <tr> | <tr> | ||||||
| 	<td>{{ h.problem }}</a></td> | 	<td>{{ h.problem }}</a></td> | ||||||
| 	<td>{{ h.body }}</td> | 	<td>{{ h.body }}</td> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Pavel "LEdoian" Turinsky
						Pavel "LEdoian" Turinsky