mirror of
https://github.com/ae-utbm/sith.git
synced 2025-09-16 04:53:48 +00:00
Compare commits
1 Commits
fix-depend
...
club-edit-
Author | SHA1 | Date | |
---|---|---|---|
|
25cd877160 |
2
.github/auto_assign.yml
vendored
2
.github/auto_assign.yml
vendored
@@ -6,7 +6,7 @@ addAssignees: author
|
|||||||
|
|
||||||
# A list of team reviewers to be added to pull requests (GitHub team slug)
|
# A list of team reviewers to be added to pull requests (GitHub team slug)
|
||||||
reviewers:
|
reviewers:
|
||||||
- ae-utbm/developpeurs
|
- ae-utbm/sith-3-developers
|
||||||
|
|
||||||
# Number of reviewers has no impact on GitHub teams
|
# Number of reviewers has no impact on GitHub teams
|
||||||
# Set 0 to add all the reviewers (default: 0)
|
# Set 0 to add all the reviewers (default: 0)
|
||||||
|
9
.github/dependabot.yml
vendored
9
.github/dependabot.yml
vendored
@@ -16,16 +16,7 @@ multi-ecosystem-groups:
|
|||||||
|
|
||||||
updates:
|
updates:
|
||||||
- package-ecosystem: "uv"
|
- package-ecosystem: "uv"
|
||||||
patterns: ["*"]
|
|
||||||
multi-ecosystem-group: "common"
|
multi-ecosystem-group: "common"
|
||||||
|
|
||||||
- package-ecosystem: "npm"
|
- package-ecosystem: "npm"
|
||||||
patterns: ["*"]
|
|
||||||
multi-ecosystem-group: "common"
|
multi-ecosystem-group: "common"
|
||||||
groups:
|
|
||||||
# npm supports production and development groups, but not uv
|
|
||||||
# cf. https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference#dependency-type-groups
|
|
||||||
main-deps:
|
|
||||||
dependency-type: "production"
|
|
||||||
dev-deps:
|
|
||||||
dependency-type: "development"
|
|
||||||
|
@@ -34,12 +34,10 @@ def migrate_meta_groups(apps: StateApps, schema_editor):
|
|||||||
clubs = list(Club.objects.all())
|
clubs = list(Club.objects.all())
|
||||||
for club in clubs:
|
for club in clubs:
|
||||||
club.board_group = meta_groups.get_or_create(
|
club.board_group = meta_groups.get_or_create(
|
||||||
name=club.unix_name + settings.SITH_BOARD_SUFFIX,
|
name=f"{club.unix_name}-bureau", defaults={"is_meta": True}
|
||||||
defaults={"is_meta": True},
|
|
||||||
)[0]
|
)[0]
|
||||||
club.members_group = meta_groups.get_or_create(
|
club.members_group = meta_groups.get_or_create(
|
||||||
name=club.unix_name + settings.SITH_MEMBER_SUFFIX,
|
name=f"{club.unix_name}-membres", defaults={"is_meta": True}
|
||||||
defaults={"is_meta": True},
|
|
||||||
)[0]
|
)[0]
|
||||||
club.save()
|
club.save()
|
||||||
club.refresh_from_db()
|
club.refresh_from_db()
|
||||||
|
@@ -535,13 +535,6 @@ class Counter(models.Model):
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
def __getattribute__(self, name: str):
|
|
||||||
if name == "edit_groups":
|
|
||||||
return Group.objects.filter(
|
|
||||||
name=self.club.unix_name + settings.SITH_BOARD_SUFFIX
|
|
||||||
).all()
|
|
||||||
return object.__getattribute__(self, name)
|
|
||||||
|
|
||||||
def get_absolute_url(self) -> str:
|
def get_absolute_url(self) -> str:
|
||||||
if self.type == "EBOUTIC":
|
if self.type == "EBOUTIC":
|
||||||
return reverse("eboutic:main")
|
return reverse("eboutic:main")
|
||||||
|
@@ -405,9 +405,6 @@ SITH_FORUM_PAGE_LENGTH = 30
|
|||||||
SITH_SAS_ROOT_DIR_ID = env.int("SITH_SAS_ROOT_DIR_ID", default=4)
|
SITH_SAS_ROOT_DIR_ID = env.int("SITH_SAS_ROOT_DIR_ID", default=4)
|
||||||
SITH_SAS_IMAGES_PER_PAGE = 60
|
SITH_SAS_IMAGES_PER_PAGE = 60
|
||||||
|
|
||||||
SITH_BOARD_SUFFIX = "-bureau"
|
|
||||||
SITH_MEMBER_SUFFIX = "-membres"
|
|
||||||
|
|
||||||
SITH_PROFILE_DEPARTMENTS = [
|
SITH_PROFILE_DEPARTMENTS = [
|
||||||
("TC", _("TC")),
|
("TC", _("TC")),
|
||||||
("IMSI", _("IMSI")),
|
("IMSI", _("IMSI")),
|
||||||
|
Reference in New Issue
Block a user