При создании ф-и для сохранения формы в бд возникает ошибка :
NotImplementedError at /test/
`create()` must be implemented.
class ClientForm(forms.Form):
name = forms.CharField(max_length=100)
surname = forms.CharField(max_length=80)
phone_number = forms.IntegerField()
email = forms.EmailField()
town = forms.CharField(max_length=90)
class MySerializer(FormSerializer):
def create(self, request):
if request.method == 'POST':
forms = ClientForm(request.POST)
if forms.is_valid():
forms.save()
return forms
class Meta(object):
form = forms
Как это исправить ?