You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the best way around it I could think of is to make it a char field in the serializer as such:
@ts_interface()
class MyModelSerializer(serializers.ModelSerializer):
flyer = serializers.CharField(required=False) # <----- HERE
class Meta:
model = MyModel
fields = ["flyer"]
I have a FileField
and the type generated looks like this:
Shouldn't it just be a string?
The text was updated successfully, but these errors were encountered: