0

How to get default user? For example

user = models.ForeignKey(User, on_delete=models.PROTECT, default=request.user)

Of course this code will not work. This question was asked before but i could not find answer that satisfy me Are there are any solutions for that situations?


Johnny
  • 59
  • 2
  • 7

0 Answers0