Added ungleich app to extend Page models.
Ungleich app has a model called UngleichPage, this model has an attribute called image_header which will be used to set the background image for the page header. Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								6c312a6e2e
							
						
					
				
			
			
				commit
				
					
						76bfb3c47b
					
				
			
		
					 10 changed files with 152 additions and 11 deletions
				
			
		
							
								
								
									
										12
									
								
								ungleich/models.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								ungleich/models.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| from django.db import models | ||||
| 
 | ||||
| from cms.extensions import PageExtension | ||||
| from cms.extensions.extension_pool import extension_pool | ||||
| 
 | ||||
| 
 | ||||
| # Create your models here. | ||||
| 
 | ||||
| class UngleichPage(PageExtension): | ||||
|     image_header = models.ImageField(upload_to='image_header') | ||||
| 
 | ||||
| extension_pool.register(UngleichPage) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue