Skip to content

Set request.user as creator in django-admin. #77

@danihodovic

Description

@danihodovic

I'm using django-attachments to upload files in django-admin.

class MyEntryOptions(admin.ModelAdmin):
    inlines = (AttachmentInlines,)

image

Instead of manually specifying the creator I would like to automatically set it to request.user. How can I do that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions