File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -230,23 +230,6 @@ def convert_time_to_string(field, registry=None):
230230    )
231231
232232
233- @convert_django_field .register (models .OneToOneRel ) 
234- def  convert_onetoone_field_to_djangomodel (field , registry = None ):
235-     model  =  field .related_model 
236- 
237-     def  dynamic_type ():
238-         _type  =  registry .get_type_for_model (model )
239-         if  not  _type :
240-             return 
241- 
242-         # We do this for a bug in Django 1.8, where null attr 
243-         # is not available in the OneToOneRel instance 
244-         null  =  getattr (field , "null" , True )
245-         return  Field (_type , required = not  null )
246- 
247-     return  Dynamic (dynamic_type )
248- 
249- 
250233@convert_django_field .register (models .ManyToManyField ) 
251234@convert_django_field .register (models .ManyToManyRel ) 
252235@convert_django_field .register (models .ManyToOneRel ) 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments