Compare commits
	
		
			2 commits
		
	
	
		
			d5a2e26e95
			...
			fdd93aa278
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| fdd93aa278 | |||
| 973d3fc8bf | 
					 4 changed files with 22 additions and 3 deletions
				
			
		|  | @ -417,7 +417,7 @@ input[type="file"] { | |||
|   display: block; | ||||
| } | ||||
| 
 | ||||
| input { | ||||
| input, textarea { | ||||
| 	margin: 5px; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -92,7 +92,8 @@ class JednoHodnoceniForm(forms.ModelForm): | |||
| 		widgets = { | ||||
| 			'problem': autocomplete.ModelSelect2( | ||||
| 				url='autocomplete_problem_odevzdatelny',   # FIXME: Dovolit i starší? | ||||
| 				) | ||||
| 				), | ||||
| 			'feedback': forms.Textarea(attrs={'rows': 1, 'cols': 30}), | ||||
| 			} | ||||
| 
 | ||||
| OhodnoceniReseniFormSet = formset_factory(JednoHodnoceniForm, | ||||
|  |  | |||
							
								
								
									
										18
									
								
								seminar/migrations/0108_hodnoceni_feedback.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								seminar/migrations/0108_hodnoceni_feedback.py
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | |||
| # Generated by Django 3.2.16 on 2022-11-14 19:30 | ||||
| 
 | ||||
| from django.db import migrations, models | ||||
| 
 | ||||
| 
 | ||||
| class Migration(migrations.Migration): | ||||
| 
 | ||||
|     dependencies = [ | ||||
|         ('seminar', '0107_zmrazenavysledkovka'), | ||||
|     ] | ||||
| 
 | ||||
|     operations = [ | ||||
|         migrations.AddField( | ||||
|             model_name='hodnoceni', | ||||
|             name='feedback', | ||||
|             field=models.TextField(blank=True, default='', help_text='Zpětná vazba řešiteli (plain text)', verbose_name='zpětná vazba'), | ||||
|         ), | ||||
|     ] | ||||
|  | @ -113,7 +113,7 @@ class Hodnoceni(bm.SeminarModelBase): | |||
|     problem = models.ForeignKey(am.Problem, verbose_name='problém', | ||||
|                                 related_name='hodnoceni', on_delete=models.PROTECT) | ||||
| 
 | ||||
|     feedback = models.CharField('zpětná vazba', max_length=120, blank=True, default='', help_text='Zpětná vazba řešiteli (plain text)') | ||||
|     feedback = models.TextField('zpětná vazba', blank=True, default='', help_text='Zpětná vazba řešiteli (plain text)') | ||||
| 
 | ||||
|     def __str__(self): | ||||
|         return "{}, {}, {}".format(self.problem, self.reseni, self.body) | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue