Skip to content

delete_orphans works only with blank=true #224

Closed
@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