Skip to content

Commit

Permalink
refactored admin
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpoi committed Oct 30, 2024
1 parent ffe6b51 commit cf12662
Show file tree
Hide file tree
Showing 17 changed files with 494 additions and 455 deletions.
6 changes: 4 additions & 2 deletions demoapp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from __future__ import absolute_import, unicode_literals

#from sendmail.settings import get_celery_enabled
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
from .celery import app as celery_app

__all__ = ("celery_app",)
# if get_celery_enabled():
# from .celery import app as celery_app
# __all__ = ("celery_app",)
2 changes: 1 addition & 1 deletion demoapp/tests/test_admin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from sendmail.admin import get_message_preview, render_placeholder_content, convert_media_urls_to_tags
from sendmail.admin.admin_utils import get_message_preview, render_placeholder_content, convert_media_urls_to_tags
from dataclasses import dataclass


Expand Down
2 changes: 1 addition & 1 deletion demoapp/tests/test_dblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from multiprocessing import Process

from sendmail.dblock import db_lock, TimeoutException, LockedException
from sendmail.models.dblock import DBMutex
from sendmail.models.dbmutex import DBMutex


@pytest.mark.django_db
Expand Down
Loading

0 comments on commit cf12662

Please sign in to comment.