Weird issue TypeError: can not serialize 'decimal.Decimal' object`

Hi,

Im getting a weird issue when adding data in my admin portal.

Internal Server Error: /admin/posts/response/add/
TypeError: can not serialize 'decimal.Decimal' object`
class Response(models.Model):
    post = models.ForeignKey(Post, on_delete=models.CASCADE)
    response = models.TextField(help_text="The response to the post")
    created_at = models.DateTimeField(default=now)
    scheduled_release = models.DateTimeField(help_text="The time the message should be released", null=True)
    delivered = models.BooleanField(default=False, help_text="Indicates if the message was delivered")
    abandoned = models.BooleanField(default=False, help_text="Indicates if the message was abandoned")
    alpha_score = models.DecimalField(max_digits=5, decimal_places=2, default=0.0, help_text="The alpha score of the message", null=True)
    linked_post = models.ManyToManyField(Post, related_name='linked_post', blank=True)
    
    def __str__(self):
        return self.response
class ResponseAdmin(admin.ModelAdmin):
    # Add serach fields and list_display
    search_fields = ('post__title', 'response')
    list_display = ('post', 'response', 'created_at', 'scheduled_release', 'delivered', 'abandoned', 'alpha_score')

Im not sure what is going on here?

If i add data outside of the admin it seems to work.

I would expect the error message to contain more than this - perhaps a full traceback?

Please confirm that these are the complete Response and ResponseAdmin classes.

What is the value that you are trying to add here?

Have you done any other modifications to the admin that might affect this? (Like a custom template for the admin, or context processor, or middleware, …)

Ok, looks like i had a issue with signal that i tototally forgot about.

Sorry for wasting your time, Ken.

Thanks

Tom