Skip to content

Create button in modal #11

@markfinger

Description

@markfinger

Hi.

Just wondering if you'd be open to a PR that added control over the display and href of a "Create" button within the instance-selection modal? Off the top of my head, I'm thinking of something like

def create_url(request):
    return '...'

@register_model_chooser(create_url=create_url)
class Foo(models.Model):
    # ...

I'm totally open to any suggestions you might have around the API, etc.

We'll need this functionality on a project, so if you're open to it, I can justify spending another hour or two to make it less hacky and send a PR. No worries, if you're reluctant or not enthused by the idea.

Cheers,
Mark.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions