pass in schedule to schedule_list and show section name on section list
This commit is contained in:
		
							parent
							
								
									f1072eb4d9
								
							
						
					
					
						commit
						c47907b29e
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		|  | @ -38,6 +38,7 @@ def schedule_list(request, slug=None): | ||||||
|     presentations = presentations.exclude(cancelled=True).order_by("id") |     presentations = presentations.exclude(cancelled=True).order_by("id") | ||||||
|      |      | ||||||
|     ctx = { |     ctx = { | ||||||
|  |         "schedule": schedule, | ||||||
|         "presentations": presentations, |         "presentations": presentations, | ||||||
|     } |     } | ||||||
|     return render(request, "schedule/schedule_list.html", ctx) |     return render(request, "schedule/schedule_list.html", ctx) | ||||||
|  |  | ||||||
|  | @ -24,7 +24,7 @@ | ||||||
| {% endblock %} | {% endblock %} | ||||||
| 
 | 
 | ||||||
| {% block body %} | {% block body %} | ||||||
|     <h1>Accepted Presentations</h1> |     <h1>Accepted {{ schedule.section.name }}</h1> | ||||||
|     {% for presentation in presentations %} |     {% for presentation in presentations %} | ||||||
|         <div class="row"> |         <div class="row"> | ||||||
|             <div class="span8 presentation well"> |             <div class="span8 presentation well"> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 James Tauber
						James Tauber