Replies: 1 comment 3 replies
-
How did you verify it didn't work? A few things to keep in mind:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, first of all, thank you for this awesome library! However, I came across a petite problem and I wasn't sure if I was using the library correctly.
I wanted to create a trigger that runs after an insertion:
The trigger worked when I tried to insert data manually, either directly into the table through psql or Django models. However, it didn't work in DRF APITestCase.
By raising an exception in the trigger's
func
, I could see that the trigger wasn't trigger untiltearDown()
was called.I was wondering if I was using the trigger correctly or if it's a known issue. I couldn't find any relevant Github issues.
In my case, I eventually changed the logic of my trigger and used
when=pgtrigger.Before
.I appreciate it if anyone here can confirm if this is a known issue. Thank you
Beta Was this translation helpful? Give feedback.
All reactions