Fix zobrazovaných obrázků
This commit is contained in:
		
							parent
							
								
									b282d8a176
								
							
						
					
					
						commit
						9a90648f29
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -629,10 +629,12 @@ class ArchivView(generic.ListView): | |||
| 		urls ={} | ||||
| 
 | ||||
| 		for i, c in enumerate(cisla): | ||||
| 			# Výchozí nastavení | ||||
| 			if c.rocnik not in urls: | ||||
| 				urls[c.rocnik] = op.join(settings.STATIC_URL, "images", "no-picture.png") | ||||
| 			# NOTE: tohle možná nastavuje poslední titulku | ||||
| 			if c.titulka_nahled: | ||||
| 				urls[c.rocnik] = c.titulka_nahled.url | ||||
| 			else: | ||||
| 				urls[c.rocnik] = op.join(settings.STATIC_URL, "images", "no-picture.png") | ||||
| 
 | ||||
| 		context["object_list"] = urls | ||||
| 		 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Pavel "LEdoian" Turinsky
						Pavel "LEdoian" Turinsky