Store user that added link

This commit is contained in:
Mouse Reeve
2022-01-10 13:27:01 -08:00
parent 6c78a7b6ef
commit 34f375c53c
4 changed files with 9 additions and 4 deletions

View File

@ -66,6 +66,7 @@ class LinkViews(TestCase):
form.data["url"] = "https://www.example.com"
form.data["filetype"] = "HTML"
form.data["book"] = self.book.id
form.data["added_by"] = self.local_user
request = self.factory.post("", form.data)
request.user = self.local_user