Re: missing "Meta.model" attribute

2020-02-21 Thread LFC 5times
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

Re: missing "Meta.model" attribute

2020-02-02 Thread matthijs zondervan
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

Re: missing "Meta.model" attribute

2020-01-11 Thread Vetti Ebinyjar
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

Re: missing "Meta.model" attribute

2020-01-11 Thread sathri mamatha
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

Re: missing "Meta.model" attribute

2020-01-08 Thread julian salas
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: > >

missing "Meta.model" attribute

2020-01-08 Thread matthijs zondervan
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