NotificationConfig¶
Qualified name: intranet.apps.notifications.models.NotificationConfig
- class intranet.apps.notifications.models.NotificationConfig(id, user, gcm_token, gcm_time, gcm_optout, android_gcm_rand)[source]¶
Bases:
Model- Parameters:
id (AutoField) – Primary key: ID
gcm_token (CharField) – Gcm token
gcm_time (DateTimeField) – Gcm time
gcm_optout (BooleanField) – Gcm optout
android_gcm_rand (CharField) – Android gcm rand
Relationship fields:
- Parameters:
user (
OneToOneFieldtoUser) – User (related name:notificationconfig)
Reverse relationships:
- Parameters:
gcmnotification (Reverse
ManyToManyFieldfromGCMNotification) – All gcm notifications of this notification config (related name ofsent_to)
Methods
Attributes
android_gcm_randType:
CharFieldgcm_optoutType:
BooleanFieldgcm_timeType:
DateTimeFieldgcm_tokenType:
CharFieldgcm_token_sha256gcmnotification_setType: Reverse
ManyToManyFieldfromGCMNotificationidType:
AutoFieldobjectsuserType:
OneToOneFieldtoUseruser_idInternal field, use
userinstead.