Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrinch committed Mar 22, 2022
1 parent 8cf51b6 commit d0b2434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fcm_django/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Device(models.Model):
help_text=_("Inactive devices will not be sent notifications"),
)
user = models.ForeignKey(
SETTINGS["USER_MODEL"], blank=True, null=True, on_delete=models.CASCADE
SETTINGS["USER_MODEL"], blank=True, null=True, on_delete=models.CASCADE, related_query_name=_("device")
)
date_created = models.DateTimeField(
verbose_name=_("Creation date"), auto_now_add=True, null=True
Expand Down

0 comments on commit d0b2434

Please sign in to comment.