Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I automatically set a field’s value to the user who last edited the object in the admin?

0
Posted

How do I automatically set a field’s value to the user who last edited the object in the admin?

0

At this point, Django doesn’t have an official way to do this. But it’s an oft-requested feature, so we’re discussing how it can be implemented. The problem is we don’t want to couple the model layer with the admin layer with the request layer (to get the current user). It’s a tricky problem. One person hacked up a solution that doesn’t require patching Django, but note that it’s an unofficial solution, and there’s no guarantee it won’t break at some point.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123