return
as prefix in Response(serializer.data)
on your view, right? – trinchet Apr 18 '16 at 21:16 yeah you are right, i don't know how i can't see it. sorry for that silly misatake :( – hco Apr 19 '16 at 21:59 | Meta
class to declare model
and fields
(you were declaring them as normal attributes of the class instead of nesting them):Recommend:python - Django REST framework: AttributeError: Serializer object has no attribute 'Meta'python# -*- coding: utf-8 -*-from django.db import modelsclass StationReport(models.Model): water_level = models.IntegerField(max_length=5, blank=False) user_name = models.CharField(max_length=256, blank=False) email_addres
BookSerializer
you haveRecommend:python - Django REST framework: AttributeError: Serializer object has no attribute 'Meta'python# -*- coding: utf-8 -*-from django.db import modelsclass StationReport(models.Model): water_level = models.IntegerField(max_length=5, blank=False) user_name = models.CharField(max_length=256, blank=False) email_addres