Skip to content
Advertisement

How to append value to the ArrayField in Django with PostgreSQL?

I have created a model with the ArrayField in Django Model. I am using PostgreSQL for the database. I want to create new rows in the database or update the existing rows. But I can not insert or append data to the ArrayField.

Model

JavaScript

View

JavaScript

The time field does not being created or updated with the new value.

How can I do this?

Advertisement

Answer

Following this Answer I did this.

JavaScript
Advertisement