|
|
|
@ -30,6 +30,7 @@ def notify_discord_on_create(sender, instance, created, **kwargs): |
|
|
|
def notify_user_creation_on_discord(sender, instance, created, **kwargs): |
|
|
|
def notify_user_creation_on_discord(sender, instance, created, **kwargs): |
|
|
|
notify_object_creation_on_discord(created, instance) |
|
|
|
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): |
|
|
|
def notify_object_creation_on_discord(created, instance): |
|
|
|
if created: |
|
|
|
if created: |
|
|
|
default_db_engine = settings.DATABASES['default']['ENGINE'] |
|
|
|
default_db_engine = settings.DATABASES['default']['ENGINE'] |
|
|
|
|