We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
example:
from rest_framework import serializers, generics from django.urls import path class ExampleSerializer(serializers.Serializer): field_one = serializers.CharField(required=True, write_only=True) field_two = serializers.CharField(required=True, write_only=True) def create(sef, validated_data): # do something return {} class ExampleView(generics.CreateAPIView): serializer_class = ExampleSerializer urlpatterns = [ path('example', views.Example.as_view(), name='example'), ]
Making an OPTIONS request results in a 500 error: 'ExampleSerializer' has no attribute 'Meta' Am I misunderstanding something, or is this a bug?
OPTIONS
'ExampleSerializer' has no attribute 'Meta'
The text was updated successfully, but these errors were encountered:
I ended up switching it to serializers.ModelSerializer and adding a Meta class as a temporary workaround.
Sorry, something went wrong.
No branches or pull requests
example:
Making an
OPTIONS
request results in a 500 error:'ExampleSerializer' has no attribute 'Meta'
Am I misunderstanding something, or is this a bug?
The text was updated successfully, but these errors were encountered: