xenua
2 years ago
2 changed files with 11 additions and 0 deletions
@ -1,6 +1,13 @@ |
|||||||
from django.apps import AppConfig |
from django.apps import AppConfig |
||||||
|
from django.db.models.signals import pre_save |
||||||
|
|
||||||
|
|
||||||
class LeftistsConfig(AppConfig): |
class LeftistsConfig(AppConfig): |
||||||
default_auto_field = 'django.db.models.BigAutoField' |
default_auto_field = 'django.db.models.BigAutoField' |
||||||
name = 'leftists' |
name = 'leftists' |
||||||
|
|
||||||
|
def ready(self): |
||||||
|
from . import signals |
||||||
|
from .models import ShortLink |
||||||
|
|
||||||
|
pre_save.connect(signals.rmcache, sender=ShortLink) |
||||||
|
Loading…
Reference in new issue