-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from MEHRSHAD-MIRSHEKARY/feat/dynamic-attachme…
…nt-config ⚡ 🔨 ✨ 🚨 feat(settings): Add dynamic validators and upload path for attachment field with validation and tests
- Loading branch information
Showing
12 changed files
with
169 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
from typing import Iterable, Union | ||
from typing import Any, Iterable, List, Optional, Type, Union | ||
|
||
from django_announcement.models.announcement_category import AnnouncementCategory | ||
from django_announcement.models.audience import Audience | ||
|
||
# Type Alias for Announcement QuerySet | ||
Audiences = Union[Audience, int, Iterable[Audience]] | ||
Categories = Union[AnnouncementCategory, int, Iterable[AnnouncementCategory]] | ||
|
||
# Type Alias for config class | ||
DefaultPath = Optional[Union[str, List[str]]] | ||
OptionalPaths = Optional[Union[Type[Any], List[Type[Any]]]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.