This sounds like a trivial question, but it seems not so easy to answer:
How would you display the ForeignKey field as a checkmark in Django Admin and save the current user when that user checks the checkbox in Admin?
Example:
class MyModel(models.Model):
...
approved = models.ForeignKey(User)
...
admin.site.register(MyModel)
How can I display a field approvedas a checkbox?
Thank you for your help!
source
share