Skip to content

Commit

Permalink
Move to root app
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Jun 11, 2024
1 parent a46f6d2 commit 78aa651
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions smartmin/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@

from django.conf import settings
from django.db import models
from django.db.models.signals import post_migrate
from django.utils import timezone

from .perms import sync_permissions

post_migrate.connect(sync_permissions)


class SmartImportRowError(Exception):
def __init__(self, message):
Expand Down
File renamed without changes.
5 changes: 0 additions & 5 deletions smartmin/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@
from django.conf import settings
from django.contrib.auth.hashers import check_password
from django.db import models
from django.db.models.signals import post_migrate
from django.utils import timezone

from .perms import sync_permissions

post_migrate.connect(sync_permissions)


def is_password_complex(password):
has_caps = re.search("[A-Z]+", password)
Expand Down
2 changes: 1 addition & 1 deletion test_runner/blog/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
import smartmin
from smartmin.csv_imports.models import ImportTask
from smartmin.models import SmartImportRowError
from smartmin.perms import update_group_permissions
from smartmin.templatetags.smartmin import get, get_value_from_view, user_as_string, view_as_json
from smartmin.tests import SmartminTest
from smartmin.users.models import FailedLogin, PasswordHistory, RecoveryToken, is_password_complex
from smartmin.users.perms import update_group_permissions
from smartmin.views import smart_url
from smartmin.widgets import DatePickerWidget, ImageThumbnailWidget
from test_runner.blog.models import Category, Post
Expand Down

0 comments on commit 78aa651

Please sign in to comment.