def contact_Form(request):
form = contactForm(request.POST or None)
if request.method == "POST" and form.is_valid():
contact = registration_form.save(commit=False)
contact = registration_form.cleaned_data.get('patronymic')
contact.save()
return render(request, 'about/about.html', {'form':form})
class SeekerSerializer(serializers.ModelSerializer):
class Meta:
model = Seeker
fields = '__all__'
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = '__all__'
class EducationSerializerCreate(serializers.ModelSerializer):
user = UserSerializer()
seeker = SeekerSerializer()
class Meta:
model = Education
fields = '__all__'