Change subtitle to HTMLfield
This commit is contained in:
		
					parent
					
						
							
								f927220a88
							
						
					
				
			
			
				commit
				
					
						567ff8d314
					
				
			
		
					 2 changed files with 22 additions and 1 deletions
				
			
		
							
								
								
									
										21
									
								
								ungleich_page/migrations/0010_auto_20171119_1404.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								ungleich_page/migrations/0010_auto_20171119_1404.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,21 @@ | ||||||
|  | # -*- coding: utf-8 -*- | ||||||
|  | # Generated by Django 1.9.4 on 2017-11-19 14:04 | ||||||
|  | from __future__ import unicode_literals | ||||||
|  | 
 | ||||||
|  | from django.db import migrations | ||||||
|  | import djangocms_text_ckeditor.fields | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | class Migration(migrations.Migration): | ||||||
|  | 
 | ||||||
|  |     dependencies = [ | ||||||
|  |         ('ungleich_page', '0009_ungleichheader_ungleichheaderitem'), | ||||||
|  |     ] | ||||||
|  | 
 | ||||||
|  |     operations = [ | ||||||
|  |         migrations.AlterField( | ||||||
|  |             model_name='service', | ||||||
|  |             name='sub_title', | ||||||
|  |             field=djangocms_text_ckeditor.fields.HTMLField(), | ||||||
|  |         ), | ||||||
|  |     ] | ||||||
|  | @ -54,7 +54,7 @@ class UngelichTextSection(CMSPlugin): | ||||||
| class Service(CMSPlugin): | class Service(CMSPlugin): | ||||||
|     menu_text = models.CharField(max_length=100, default="", blank=True) |     menu_text = models.CharField(max_length=100, default="", blank=True) | ||||||
|     title = models.CharField(max_length=200) |     title = models.CharField(max_length=200) | ||||||
|     sub_title = models.CharField(max_length=200) |     sub_title = HTMLField() | ||||||
| 
 | 
 | ||||||
|     def __str__(self): |     def __str__(self): | ||||||
|         return self.title |         return self.title | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue