Skip to content

Commit

Permalink
disable the possibility to add conversations from admin
Browse files Browse the repository at this point in the history
  • Loading branch information
madjid-asa committed Aug 10, 2023
1 parent 953f195 commit d9fc035
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lemarche/siaes/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class ConversationsInline(admin.TabularInline):
# autocomplete_fields = ["user"]
readonly_fields = ["id", "title_with_link", "nb_message_with_link", "kind", "created_at"]
extra = 0
max_num = 0

def title_with_link(self, conversation: Conversation):
url = reverse("admin:conversations_conversation_change", args=[conversation.id])
Expand Down

0 comments on commit d9fc035

Please sign in to comment.