Skip to content

Commit

Permalink
bug fix for parent invite class and query manager (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
KlemenSpruk authored Oct 17, 2023
1 parent 4098505 commit f5c2676
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions django_project_base/base/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,9 @@ def trigger_changed(self, old_state=None, new_state=None, payload=None, **kwargs

project_settings_manager = swapper.load_model("django_project_base", "ProjectSettings").objects
for sender in set(AwsSes.list_sender_emails()) - (
set(
project_settings_manager.objects.filter(name=EMAIL_SENDER_ID_SETTING_NAME).values_list(
"value", flat=True
)
)
set(project_settings_manager.filter(name=EMAIL_SENDER_ID_SETTING_NAME).values_list("value", flat=True))
| set(
project_settings_manager.objects.filter(name=EMAIL_SENDER_ID_SETTING_NAME).values_list(
project_settings_manager.filter(name=EMAIL_SENDER_ID_SETTING_NAME).values_list(
"pending_value", flat=True
)
)
Expand Down
2 changes: 1 addition & 1 deletion django_project_base/base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,6 @@ class Meta:
]


class Invite(BaseProject):
class Invite(BaseInvite):
class Meta:
swappable = swapper.swappable_setting("django_project_base", "Invite")

0 comments on commit f5c2676

Please sign in to comment.