Skip to content

Commit

Permalink
Move as variaveis COLLECTION_TEAM e JOURNAL_TEAM para base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelveigarangel committed Feb 14, 2024
1 parent c3b5494 commit 67f6479
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,4 +465,8 @@

WAGTAIL_USER_EDIT_FORM = 'core.users.forms.CustomUserEditForm'
WAGTAIL_USER_CREATION_FORM = 'core.users.forms.CustomUserCreationForm'
WAGTAIL_USER_CUSTOM_FIELDS = ['collection', 'journal']
WAGTAIL_USER_CUSTOM_FIELDS = ['collection', 'journal']

# Name of Groups
COLLECTION_TEAM = "Collection Team"
JOURNAL_TEAM = "Journal Team"
4 changes: 1 addition & 3 deletions journal/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
from . import models
from .button_helper import IndexedAtHelper
from .views import import_file, validate

COLLECTION_TEAM = "Collection Team"
JOURNAL_TEAM = "Journal Team"
from config.settings.base import COLLECTION_TEAM, JOURNAL_TEAM


class OfficialJournalCreateView(CreateView):
Expand Down

0 comments on commit 67f6479

Please sign in to comment.