Bugfix: Cannot unassign presentation on schedule/edit view
This commit is contained in:
		
							parent
							
								
									5c07d3e945
								
							
						
					
					
						commit
						bf4b682e8a
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -79,8 +79,9 @@ class Slot(models.Model): | |||
|         Unassign the associated content with this slot. | ||||
|         """ | ||||
|         if self.content and self.content.slot_id: | ||||
|             self.content.slot = None | ||||
|             self.content.save() | ||||
|             presentation = self.content | ||||
|             presentation.slot = None | ||||
|             presentation.save() | ||||
|      | ||||
|     @property | ||||
|     def content(self): | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Martin Brochhaus
						Martin Brochhaus