Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • at this line 'new_note = Note(text=text, content_object = student, user = user)' if you mean to create new object then create like this: Commented May 4, 2019 at 16:37
  • new_note = Note.objects.create(text=text, content_object = student, user = user) Commented May 4, 2019 at 16:38
  • @chiragsoni Thank you! Can I ask what the difference is? Also, it is still causing the same error that student is not json serializable. Any ideas? Commented May 4, 2019 at 16:45
  • Read this:stackoverflow.com/questions/26672077/… Commented May 4, 2019 at 17:13
  • Thank you! Any idea why it is still saying student is not json serializable Commented May 4, 2019 at 17:20