From 143a4a6e8c70557710d1b207a176f169d145ed1e Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 12 Nov 2022 22:10:06 -0700 Subject: Start some settings work --- users/views/identity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'users/views') diff --git a/users/views/identity.py b/users/views/identity.py index 5d11d63..d78bda1 100644 --- a/users/views/identity.py +++ b/users/views/identity.py @@ -1,13 +1,13 @@ import string from django import forms -from django.conf import settings from django.contrib.auth.decorators import login_required from django.http import Http404 from django.shortcuts import redirect from django.utils.decorators import method_decorator from django.views.generic import FormView, TemplateView, View +from core.config import Config from core.forms import FormHelper from users.decorators import identity_required from users.models import Domain, Follow, Identity, IdentityStates @@ -26,7 +26,7 @@ class ViewIdentity(TemplateView): fetch=True, ) posts = identity.posts.all()[:100] - if identity.data_age > settings.IDENTITY_MAX_AGE: + if identity.data_age > Config.load().IDENTITY_MAX_AGE: identity.transition_perform(IdentityStates.outdated) return { "identity": identity, -- cgit v1.2.3