Skip to content

"find apps" in admin creates almost duplicate app in django_plotly_dash_statelessapp #292

@sdementen

Description

@sdementen

I have created the example app SimpleExample.

When running the django project for the first time, the table django_plotly_dash_statelessapp is empty.

When I first run the Dash app, the table contains a new row with name="SimpleExample" and slug="simpleexample".
However, when I run the "find apps" command in the admin panel, I get a second app with name="simpleexample" and slug="simpleexample2". This is due to the name = slugify(name) found https://github.com/GibbsConsulting/django-plotly-dash/blob/master/django_plotly_dash/dash_wrapper.py#L105 and https://github.com/GibbsConsulting/django-plotly-dash/blob/master/django_plotly_dash/dash_wrapper.py#L123.

I guess this is not expected (there should be only one row in this table for the SimpleExample app).

As there is already the slug field for the slugified version of the app name, I suspect the two lines should be commented. If I do so, the "find apps" does not create a new row in the table.

Maybe linked to issue #263 ?

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