python - Django serializer gives 'str' object has no attribute '_meta' error -


I'm trying to create a Django view that will give JSN feedback as quickly as possible and with the latest objects. But failure fails to work with this error.

  There is no attribute in 'str' object '_meta'  

I have other serialization and it works. / P>

Here is the code.

  def get_calendar_limits (request): results = serializers.serialize ("json", session.objects.aggregate (maximum ('date'),  

Thank you very much.

< P> Take a look at the following:

  objects = session.objects.aggregate (maximum ('date'), minimum ('date')) [O] ] Result = serializers. Serialize ("json", objects, make sure_ass = false)  

You just want to run the above mentioned python as an experiment For the sector.

What kind of your goods? Is this type serial?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -