Novinky | oprava chyby se zobrazovanym nazvem
This commit is contained in:
		
							parent
							
								
									42df6f9265
								
							
						
					
					
						commit
						60a93713b3
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -631,7 +631,7 @@ class Novinky(models.Model): | |||
|     zverejneno = models.BooleanField('Zveřejněno', default="False") | ||||
| 
 | ||||
|     def __str__(self): | ||||
|         return '[' + self.datum + '] ' + self.text[0:20] | ||||
|         return '[' + str(self.datum) + '] ' + self.text[0:50] | ||||
| 
 | ||||
|     class Meta: | ||||
|         verbose_name = 'Novinka' | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Bc. Petr Pecha
						Bc. Petr Pecha