Adds comment

clubs
Laurent 1 year ago
parent e0c0f06574
commit fe50eed062
  1. 1
      tournaments/signals.py

@ -30,6 +30,7 @@ def notify_discord_on_create(sender, instance, created, **kwargs):
def notify_user_creation_on_discord(sender, instance, created, **kwargs):
notify_object_creation_on_discord(created, instance)
# WARNING: using this method requires the instance to have a discord_string method
def notify_object_creation_on_discord(created, instance):
if created:
default_db_engine = settings.DATABASES['default']['ENGINE']

Loading…
Cancel
Save