How to let a superuser fill some forms for other users
I want to create a Django app that has two types of users. A regular user can register and fill in some contact and personal info on their profile page. The staff users have the ability to edit or add some additional info for the regular users. To be more specific, they need to fill a scientific survey for every user. Firstly, I need a page that shows all the users sorted by those who have the survey object and those who don't, and finally, by clicking on their name, the staff user gets redirected to the survey form related to that specific user. Do you guys have any suggestions on how am I supposed to do this? I created a model like this:
class ScientificSurvey(models.Model):
id = models.AutoField(primary_key=True)
user = models.ForeignKey(User, on_delete=models.CASCADE)
info1 = models.CharField(max_length=24, choices=SURVEY_CHOICES)
info2 = models.CharField(max_length=24, choices=SURVEY_CHOICES)
info3 = models.CharField(max_length=24, choices=SURVEY_CHOICES)
info4 = models.CharField(max_length=24, choices=SURVEY_CHOICES)
info5 = models.CharField(max_length=24, choices=SURVEY_CHOICES)
Users themselves cannot access this model and only the staff user is allowed to create or edit one for the users. I couldnt find anything on the web that could help me.