@@ -20,7 +20,7 @@ class Migration(migrations.Migration):
2020 ('name' , models .CharField (max_length = 255 , null = True , verbose_name = 'Name' , blank = True )),
2121 ('active' , models .BooleanField (default = True , help_text = 'Inactive devices will not be sent notifications' , verbose_name = 'Is active' )),
2222 ('date_created' , models .DateTimeField (auto_now_add = True , verbose_name = 'Creation date' , null = True )),
23- ('device_id' , models .UUIDField (help_text = b'UDID / UIDevice.identifierForVendor()' , max_length = 32 , null = True , verbose_name = 'Device ID' , blank = True )),
23+ ('device_id' , models .UUIDField (help_text = b'UDID / UIDevice.identifierForVendor()' , max_length = 32 , null = True , verbose_name = 'Device ID' , blank = True , db_index = True )),
2424 ('registration_id' , models .CharField (unique = True , max_length = 64 , verbose_name = 'Registration ID' )),
2525 ('user' , models .ForeignKey (blank = True , to = settings .AUTH_USER_MODEL , null = True )),
2626 ],
@@ -36,7 +36,7 @@ class Migration(migrations.Migration):
3636 ('name' , models .CharField (max_length = 255 , null = True , verbose_name = 'Name' , blank = True )),
3737 ('active' , models .BooleanField (default = True , help_text = 'Inactive devices will not be sent notifications' , verbose_name = 'Is active' )),
3838 ('date_created' , models .DateTimeField (auto_now_add = True , verbose_name = 'Creation date' , null = True )),
39- ('device_id' , push_notifications .fields .HexIntegerField (help_text = b'ANDROID_ID / TelephonyManager.getDeviceId() (always as hex)' , null = True , verbose_name = 'Device ID' , blank = True )),
39+ ('device_id' , push_notifications .fields .HexIntegerField (help_text = b'ANDROID_ID / TelephonyManager.getDeviceId() (always as hex)' , null = True , verbose_name = 'Device ID' , blank = True , db_index = True )),
4040 ('registration_id' , models .TextField (verbose_name = 'Registration ID' )),
4141 ('user' , models .ForeignKey (blank = True , to = settings .AUTH_USER_MODEL , null = True )),
4242 ],
0 commit comments