diff --git a/aleksis/core/forms.py b/aleksis/core/forms.py index efd6e34edae2dd9f6e01e02cc9c8c9a669ce7cd0..c6c15e76465feb96363eb95f225549d0b65b3d92 100644 --- a/aleksis/core/forms.py +++ b/aleksis/core/forms.py @@ -160,7 +160,18 @@ class EditGroupForm(SchoolTermRelatedExtensibleForm): class Meta: model = Group - exclude = [] + fields = [ + "school_term", + "name", + "short_name", + "group_type", + "members", + "owners", + "parent_groups", + "additional_fields", + "photo", + "avatar", + ] widgets = { "members": ModelSelect2MultipleWidget( search_fields=[ @@ -316,7 +327,16 @@ class AnnouncementForm(ExtensibleForm): class Meta: model = Announcement - exclude = [] + fields = [ + "valid_from_date", + "valid_from_time", + "valid_until_date", + "valid_until_time", + "groups", + "persons", + "title", + "description", + ] class ChildGroupsForm(forms.Form): @@ -348,7 +368,7 @@ class EditAdditionalFieldForm(forms.ModelForm): class Meta: model = AdditionalField - exclude = [] + fields = ["title", "field_type", "required", "help_text"] class EditGroupTypeForm(forms.ModelForm): @@ -366,7 +386,7 @@ class SchoolTermForm(ExtensibleForm): class Meta: model = SchoolTerm - exclude = [] + fields = ["name", "date_start", "date_end"] class DashboardWidgetOrderForm(ExtensibleForm): diff --git a/pyproject.toml b/pyproject.toml index f5f4f37bd1b7e4dfb02607cb9f3307d5cc942ef6..66214390e8b9f467cbf9712a628ecb527b6ecaf9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -111,8 +111,8 @@ django-uwsgi-ng = "^2.0" django-extensions = "^3.1.1" ipython = "^8.0.0" django-oauth-toolkit = "^2.0.0" -django-storages = {version = "^1.11.1", optional = true} -boto3 = {version = "^1.17.33", optional = true} +django-storages = {version = "^1.13.2", optional = true} +boto3 = {version = "^1.26.142", optional = true} django-cleanup = "^7.0.0" djangorestframework = "^3.12.4" Whoosh = "^2.7.4"