|  | @ -110,15 +110,16 @@ class AnexoNormaJuridicaCrud(MasterDetailCrud): | 
			
		
	
		
		
			
				
					|  |  |     class CreateView(MasterDetailCrud.CreateView): |  |  |     class CreateView(MasterDetailCrud.CreateView): | 
			
		
	
		
		
			
				
					|  |  |         form_class = AnexoNormaJuridicaForm |  |  |         form_class = AnexoNormaJuridicaForm | 
			
		
	
		
		
			
				
					|  |  |         layout_key = 'AnexoNormaJuridica' |  |  |         layout_key = 'AnexoNormaJuridica' | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |         def get_initial(self): |  |  |         def get_initial(self): | 
			
		
	
		
		
			
				
					
					|  |  |             norma_id = str(self.request).split("/")[-3] |  |  |             initial = super(MasterDetailCrud.CreateView, self).get_initial() | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             self.initial = super(MasterDetailCrud.CreateView, self).get_initial() |  |  |             initial['norma'] = NormaJuridica.objects.get(id=self.kwargs['pk']) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             self.initial['norma'] = NormaJuridica.objects.get(id=norma_id) |  |  |             return initial | 
			
				
				
			
		
	
		
		
			
				
					|  |  |             return self.initial |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     class UpdateView(MasterDetailCrud.UpdateView): |  |  |     class UpdateView(MasterDetailCrud.UpdateView): | 
			
		
	
		
		
			
				
					|  |  |         form_class = AnexoNormaJuridicaForm |  |  |         form_class = AnexoNormaJuridicaForm | 
			
		
	
		
		
			
				
					|  |  |         layout_key = 'AnexoNormaJuridica' |  |  |         layout_key = 'AnexoNormaJuridica' | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |         def get_initial(self): |  |  |         def get_initial(self): | 
			
		
	
		
		
			
				
					|  |  |             initial = super(UpdateView, self).get_initial() |  |  |             initial = super(UpdateView, self).get_initial() | 
			
		
	
		
		
			
				
					|  |  |             initial['norma'] = self.object.norma |  |  |             initial['norma'] = self.object.norma | 
			
		
	
	
		
		
			
				
					|  | 
 |