Skip to content

Feature/notification app#9

Open
arezoo88 wants to merge 10 commits intomainfrom
feature/notification-app
Open

Feature/notification app#9
arezoo88 wants to merge 10 commits intomainfrom
feature/notification-app

Conversation

@arezoo88
Copy link

@arezoo88 arezoo88 commented Nov 1, 2021

create notification model


class Notification(models.Model):
user_notification = models.ForeignKey(to=UserNotification,on_delete=models.DO_NOTHING)
TYPE = (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TYPE_SMS = 'sms'

TYPES = (
(TYPE_SMS, 'sms')
)



class NotificationConfig(AppConfig):
name = 'notification'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

def ready(self):
from . import signals

'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'notification'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

notification.apps.NotificationConfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants