Skip to content

Commit

Permalink
Import cabinet.models for the side-effect
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Jul 1, 2024
1 parent f25e26c commit c8b94fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cabinet/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
from django.urls import NoReverseMatch, reverse
from django.utils.text import Truncator

# Import cabinet.models for the settings.CABINET_FILE_MODEL side-effect
import cabinet.models # noqa: F401


class CabinetFileRawIdWidget(ForeignKeyRawIdWidget):
template_name = "admin/cabinet/cabinet_file_raw_id_widget.html"
Expand Down

0 comments on commit c8b94fa

Please sign in to comment.