Skip to content

Commit

Permalink
minor hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
biagiodistefano committed Jan 16, 2024
1 parent bba6fdc commit d13dca4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ItemInline(admin.TabularInline):

@admin.register(Message)
class MessageAdmin(admin.ModelAdmin):
list_filter = ("party",)
list_filter = ("party", "autosend", "draft", )
readonly_fields = ("id",)


Expand Down
1 change: 1 addition & 0 deletions src/api/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def create_party_default_messages(sender, instance: models.Party, created: bool,
msg_instance.due_at = instance.date_and_time - delta
msg_instance.send_threshold = send_threshold
msg_instance.draft = False
msg_instance.autosend = True
msg_instance.save()


Expand Down

0 comments on commit d13dca4

Please sign in to comment.