Create SectionContact CMSPlugin
This commit is contained in:
		
					parent
					
						
							
								92086ad2ea
							
						
					
				
			
			
				commit
				
					
						ef47e999f1
					
				
			
		
					 2 changed files with 6 additions and 3 deletions
				
			
		|  | @ -1,8 +1,7 @@ | ||||||
| from cms.models.pluginmodel import CMSPlugin |  | ||||||
| from cms.plugin_base import CMSPluginBase | from cms.plugin_base import CMSPluginBase | ||||||
| from cms.plugin_pool import plugin_pool | from cms.plugin_pool import plugin_pool | ||||||
| 
 | 
 | ||||||
| from .models import UngelichPicture | from .models import UngelichPicture, UngelichContactUsSection | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @plugin_pool.register_plugin | @plugin_pool.register_plugin | ||||||
|  | @ -22,6 +21,6 @@ class SectionWithImagePlugin(CMSPluginBase): | ||||||
| 
 | 
 | ||||||
| @plugin_pool.register_plugin | @plugin_pool.register_plugin | ||||||
| class SectionContact(CMSPluginBase): | class SectionContact(CMSPluginBase): | ||||||
|     model = CMSPlugin |     model = UngelichContactUsSection | ||||||
|     render_template = "ungleich_page/glasfaser/section_contact.html" |     render_template = "ungleich_page/glasfaser/section_contact.html" | ||||||
|     cache = False |     cache = False | ||||||
|  |  | ||||||
|  | @ -11,3 +11,7 @@ class UngelichPicture(CMSPlugin): | ||||||
|         on_delete=models.SET_NULL |         on_delete=models.SET_NULL | ||||||
|     ) |     ) | ||||||
|     title = models.CharField(max_length=200) |     title = models.CharField(max_length=200) | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | class UngelichContactUsSection(CMSPlugin): | ||||||
|  |     email = models.EmailField(max_length=200) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue