# Why does calling super in PostSerializer#raw cause a 500 error while calling object.raw works?

**URL:** https://meta.discourse.org/t/why-does-calling-super-in-postserializer-raw-cause-a-500-error-while-calling-object-raw-works/390455
**Category:** Development
**Created:** [December 4, 2025, 9:24pm UTC](https://meta.discourse.org/t/why-does-calling-super-in-postserializer-raw-cause-a-500-error-while-calling-object-raw-works/390455 "2025-12-04T21:24:41Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [December 5, 2025, 3:18pm UTC](https://meta.discourse.org/t/why-does-calling-super-in-postserializer-raw-cause-a-500-error-while-calling-object-raw-works/390455/4 "2025-12-05T15:18:04Z")

</div>

> [@copymonopoly](#):
>
> I’m learning how to extend Discourse serializers

You want to use `add_to_serializer` instead.

E.g. [How to add user data to the post serializer?](https://meta.discourse.org/t/how-to-add-user-data-to-the-post-serializer/143523)

---

_[View the full topic](https://meta.discourse.org/t/why-does-calling-super-in-postserializer-raw-cause-a-500-error-while-calling-object-raw-works/390455)._
