mirror of
				https://github.com/graphql-python/graphene-django.git
				synced 2025-11-04 01:47:57 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			377 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			377 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from graphene import Field
 | 
						|
 | 
						|
from graphene_django.forms.mutation import DjangoFormMutation, DjangoModelFormMutation
 | 
						|
 | 
						|
from .forms import PetForm
 | 
						|
from .types import PetType
 | 
						|
 | 
						|
 | 
						|
class PetFormMutation(DjangoFormMutation):
 | 
						|
    class Meta:
 | 
						|
        form_class = PetForm
 | 
						|
 | 
						|
 | 
						|
class PetMutation(DjangoModelFormMutation):
 | 
						|
    pet = Field(PetType)
 | 
						|
 | 
						|
    class Meta:
 | 
						|
        form_class = PetForm
 |