Skip to content

Commit

Permalink
remove more broken bits
Browse files Browse the repository at this point in the history
  • Loading branch information
goapunk authored and m4ra committed Oct 22, 2024
1 parent 34416a7 commit 2ab3588
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 105 deletions.
2 changes: 1 addition & 1 deletion euth/users/templates/euth_users/indicator_menu.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load i18n thumbnail avatar %}
{% load i18n avatar %}

<ul class="nav navbar-nav navbar-right ms-sm-auto user-indicator order-sm-2" id="user-indicator">
{% if request.user.is_authenticated %}
Expand Down
6 changes: 1 addition & 5 deletions euth/users/templatetags/avatar.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
from django import template
from easy_thumbnails.templatetags.thumbnail import thumbnail_url

register = template.Library()


@register.simple_tag()
def get_avatar(user, size_alias):
if user.avatar:
return thumbnail_url(user.avatar, size_alias)
else:
return user.avatar_fallback
return user.avatar_fallback
3 changes: 0 additions & 3 deletions euth_wagtail/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
'modelcluster',
'taggit',
'widget_tweaks',
'easy_thumbnails',
'parler',

'django.contrib.sites',
Expand All @@ -71,7 +70,6 @@
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django_cloudflare_push.middleware.push_middleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
Expand Down Expand Up @@ -130,7 +128,6 @@
AUTH_USER_MODEL = 'euth_users.User'

AUTHENTICATION_BACKENDS = (
'rules.permissions.ObjectPermissionBackend',
'django.contrib.auth.backends.ModelBackend',
'allauth.account.auth_backends.AuthenticationBackend',
)
Expand Down
84 changes: 0 additions & 84 deletions euth_wagtail/templates/a4dashboard/includes/project_list_item.html

This file was deleted.

1 change: 1 addition & 0 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Additional requirements
bleach==6.1.0
bcrypt==4.0.1
brotli==1.0.9
django-sites==0.11
Expand Down
12 changes: 0 additions & 12 deletions tests/helpers.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
import os
from urllib.parse import urlparse

from django.conf import settings
from django.urls import resolve
from easy_thumbnails.files import get_thumbnailer


def createThumbnail(imagefield):
thumbnailer = get_thumbnailer(imagefield)
thumbnail = thumbnailer.generate_thumbnail(
{'size': (800, 400), 'crop': 'smart'})
thumbnailer.save_thumbnail(thumbnail)
thumbnail_path = os.path.join(settings.MEDIA_ROOT, thumbnail.path)
return thumbnail_path


def templates_used(response):
Expand Down

0 comments on commit 2ab3588

Please sign in to comment.