duplicate, please delete
please delete this, a snippet got posted twice accidentally
- djangosnippets
please delete this, a snippet got posted twice accidentally
Example: class NewsAdmin(InitialFieldsMixin, admin.ModelAdmin): initial = {'author_name': lambda self, request, obj, **kwargs: request.user}
RommeDeSerieux has posted 2 snippets.