Initial commit - clean project structure
This commit is contained in:
11
accounts/signals.py
Normal file
11
accounts/signals.py
Normal file
@@ -0,0 +1,11 @@
|
||||
"""
|
||||
سیگنال ثبتنامِ واقعی کاربر (نه guest session). سایر اپها (مثلاً discount
|
||||
برای اختصاص خودکار آفر) بهجای import کردن مستقیم از accounts، فقط این
|
||||
سیگنال رو در apps.py خودشون connect میکنن؛ این یعنی accounts هیچوقت لازم
|
||||
نیست بدونه discount/offer اصلاً وجود داره — دقیقاً همون درخواست سینیور برای
|
||||
signal-based بودن منطق اعمال آفر.
|
||||
"""
|
||||
from django.dispatch import Signal
|
||||
|
||||
# kwargs: user_id (int)
|
||||
user_registered = Signal()
|
||||
Reference in New Issue
Block a user