diff options
author | Andrew Godwin | 2022-11-17 19:16:34 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-17 19:16:34 -0700 |
commit | 6adfdbabe0d44c17f32abc9d48a6e252e2a0792e (patch) | |
tree | 6644c5eeab7970a9f9b8d9540b7ebe28cc499331 /core/models | |
parent | 2a3690d1c148da5dd799052403ba7290e1fb7de0 (diff) | |
download | takahe-6adfdbabe0d44c17f32abc9d48a6e252e2a0792e.tar.gz takahe-6adfdbabe0d44c17f32abc9d48a6e252e2a0792e.tar.bz2 takahe-6adfdbabe0d44c17f32abc9d48a6e252e2a0792e.zip |
Add signup and password reset
Diffstat (limited to 'core/models')
-rw-r--r-- | core/models/config.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/core/models/config.py b/core/models/config.py index 021bf67..4ba8375 100644 --- a/core/models/config.py +++ b/core/models/config.py @@ -5,7 +5,6 @@ import pydantic from django.core.files import File from django.db import models from django.templatetags.static import static -from django.utils.functional import classproperty from core.uploads import upload_namer from takahe import __version__ @@ -54,11 +53,6 @@ class Config(models.Model): ("key", "user", "identity"), ] - @classproperty - def system(cls): - cls.system = cls.load_system() - return cls.system - system: ClassVar["Config.ConfigOptions"] # type: ignore @classmethod @@ -160,13 +154,16 @@ class Config(models.Model): version: str = __version__ - site_name: str = "takahē" + site_name: str = "Takahē" highlight_color: str = "#449c8c" site_about: str = "<h2>Welcome!</h2>\n\nThis is a community running Takahē." site_icon: UploadedImage = static("img/icon-128.png") site_banner: UploadedImage = static("img/fjords-banner-600.jpg") + allow_signups: bool = False + post_length: int = 500 + identity_max_per_user: int = 5 identity_max_age: int = 24 * 60 * 60 class UserOptions(pydantic.BaseModel): |