mirror of
				https://github.com/graphql-python/graphene-django.git
				synced 2025-11-04 09:57:53 +03:00 
			
		
		
		
	Reword 'abstract' -> 'mixin' in plain tutorial
More technically correct
This commit is contained in:
		
							parent
							
								
									52d14f3b8a
								
							
						
					
					
						commit
						1ba9652f38
					
				| 
						 | 
				
			
			@ -179,9 +179,9 @@ Create ``cookbook/ingredients/schema.py`` and type the following:
 | 
			
		|||
            return Ingredient.objects.select_related('category').all()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Note that the above ``Query`` class is marked as 'abstract'. This is
 | 
			
		||||
because we will now create a project-level query which will combine all
 | 
			
		||||
our app-level queries.
 | 
			
		||||
Note that the above ``Query`` class is a mixin, inheriting from
 | 
			
		||||
``object``. This is because we will now create a project-level query
 | 
			
		||||
class which will combine all our app-level mixins.
 | 
			
		||||
 | 
			
		||||
Create the parent project-level ``cookbook/schema.py``:
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user