In Serializer:
Its, class Meta:
model = your_model
fields = (your_fields,)
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to djang
day, January 9, 2020 at 4:15:15 AM UTC+5:30, matthijs zondervan
>> wrote:
>>>
>>> Hi, i am trying to build a simple API. I started using the tutorial on
>>> the site.
>>> I made the user API point it works fine.
>>> But when i try to make m
PI entry point with my own model, I get
>> this error "Class PrinterSerializer missing "Meta.model" attribute"
>>
>> My model:
>>
>> class Printer(models.Model):
>> printer_name = models.CharField(max_length=255)
>> printer_description
on the
> site.
> I made the user API point it works fine.
> But when i try to make my own API entry point with my own model, I get
> this error "Class PrinterSerializer missing "Meta.model" attribute"
>
> My model:
>
> class Printer(models.Model):
&g
ted using the tutorial on the
> site.
> I made the user API point it works fine.
> But when i try to make my own API entry point with my own model, I get
> this error "Class PrinterSerializer missing "Meta.model" attribute"
>
> My model:
>
>
Hi, i am trying to build a simple API. I started using the tutorial on the
site.
I made the user API point it works fine.
But when i try to make my own API entry point with my own model, I get this
error "Class PrinterSerializer missing "Meta.model" attribute"
My m