Search code examples
djangodjango-viewsdjango-users

How to extend a view from an external app?


I have a django project that uses views from an external app. The view displays a form but does not save the user. I want to be able to remember this user in order to grant him permission for another view. How do I extend the external app's view so it saves the user who's filling out this form?

For example: User A fills out a form to post a job. Users B and C apply to this job. I want to show user A the people who have applied to the job-post (users B and C) but only if user A is indeed the creator of the job post.

I hope I make sense.


Solution

  • This is generally not feasible. You should consider rewriting the view fresh, monkey-patching it into the original app if appropriate.