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 (
OneToOneField
toUser
) – User (related name:notificationconfig
)
Reverse relationships:
- Parameters:
gcmnotification (Reverse
ManyToManyField
fromGCMNotification
) – All gcm notifications of this notification config (related name ofsent_to
)
Methods
Attributes
android_gcm_rand
Type:
CharField
gcm_optout
Type:
BooleanField
gcm_time
Type:
DateTimeField
gcm_token
Type:
CharField
gcm_token_sha256
gcmnotification_set
Type: Reverse
ManyToManyField
fromGCMNotification
id
Type:
AutoField
objects
user
Type:
OneToOneField
toUser
user_id
Internal field, use
user
instead.