signals.py 510 B

12345678910111213141516
  1. # This Source Code Form is subject to the terms of the Mozilla Public
  2. # License, v. 2.0. If a copy of the MPL was not distributed with this
  3. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  4. from django.dispatch import Signal
  5. user_created = Signal(providing_args=['user'])
  6. user_created.__doc__ = """
  7. Signal triggered when a user is automatically created during authentication.
  8. :param sender:
  9. The function that created the user instance.
  10. :param user:
  11. The user instance that was created.
  12. """