[Django]-RequestFactory & reverse with pk (must be called with either an object pk or a slug)

4👍

You have to call the view with the request and the primary key, for example:

EditAutomation.as_view()(request, pk=self.rule.id)

Leave a comment