Skip to content

delete_orphans works only with blank=true #224

@vchrisb

Description

@vchrisb

currently delete_orphans=True only works in conjunction with blank=True due to https://github.com/codingjoe/django-stdimage/blob/master/stdimage/models.py#L287

delete_orphans should also work with blank=False.
I think it should be sufficient to just remove self.blank from the if statement.

Happy to do a PR for this small change.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy