mirror of
				https://github.com/graphql-python/graphene-django.git
				synced 2025-11-04 09:57:53 +03:00 
			
		
		
		
	Fixed returns in class init
This commit is contained in:
		
							parent
							
								
									d73f4aa235
								
							
						
					
					
						commit
						775221c427
					
				| 
						 | 
					@ -12,7 +12,7 @@ from .utils import DJANGO_FILTER_INSTALLED, maybe_queryset
 | 
				
			||||||
class DjangoListField(Field):
 | 
					class DjangoListField(Field):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __init__(self, _type, *args, **kwargs):
 | 
					    def __init__(self, _type, *args, **kwargs):
 | 
				
			||||||
        return super(DjangoListField, self).__init__(List(_type), *args, **kwargs)
 | 
					        super(DjangoListField, self).__init__(List(_type), *args, **kwargs)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @property
 | 
					    @property
 | 
				
			||||||
    def model(self):
 | 
					    def model(self):
 | 
				
			||||||
| 
						 | 
					@ -30,7 +30,7 @@ class DjangoConnectionField(ConnectionField):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __init__(self, *args, **kwargs):
 | 
					    def __init__(self, *args, **kwargs):
 | 
				
			||||||
        self.on = kwargs.pop('on', False)
 | 
					        self.on = kwargs.pop('on', False)
 | 
				
			||||||
        return super(DjangoConnectionField, self).__init__(*args, **kwargs)
 | 
					        super(DjangoConnectionField, self).__init__(*args, **kwargs)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @property
 | 
					    @property
 | 
				
			||||||
    def model(self):
 | 
					    def model(self):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user