Skip to content

Conversation

@jroneel
Copy link

@jroneel jroneel commented Nov 13, 2025

Summary

Disabled the ability for users to add new "Mailing Outs" entries through both the main site and the crm section. The changes ensure that the "add" permission is removed for the "Mailing Outs" model in the CRM app.

Changes

Overrode the has_add_permission method in MailingOutAdmin to always return False, blocking users from adding Mailing Outs via the Django admin interface and hiding the "add" button in relevant admin views.
Updated tests to remove the "add" permission and "add" URL for the "Mailing Outs" model in the CRM app.

Pull Request Checklist

Put an x in the boxes that apply.

  • Tests passed.
      python manage.py test tests/ --noinput
  • No testing required.
  • Make sure you are requesting to pull a topic/feature/bugfix branch. Don't request your master!
  • A descriptive title and description of the changes made are provided.
  • Submit one item per pull request. This eases reviewing and speeds up merging.
  • All changed files cannot be split into multiple pull requests (must be in one PR)
  • The documentation is up-to-date

When applicable

  • The issue number is provided in the description or title of the pull request.
  • Does this close the issue mentioned?
  • Screenshots of the results are provided.
  • Additional tests have been written.
Screenshot 2025-11-13 144416

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant