Skip to content

Commit

Permalink
Merge pull request #173 from MHM5000/fix_charfield
Browse files Browse the repository at this point in the history
Fix device_id's max_length
  • Loading branch information
xtrinch authored Aug 16, 2021
2 parents 2825245 + 6661ca8 commit bb23901
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ fcm_django.egg-info
# IDE
.idea
*.iml
.vscode

# virtualenv
.env
Expand Down
2 changes: 1 addition & 1 deletion fcm_django/migrations/0006_auto_20210802_1140.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Migration(migrations.Migration):
blank=True,
db_index=True,
help_text="Unique device identifier",
max_length=3072,
max_length=255,
null=True,
verbose_name="Device ID",
),
Expand Down
2 changes: 1 addition & 1 deletion fcm_django/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class AbstractFCMDevice(Device):
null=True,
db_index=True,
help_text=_("Unique device identifier"),
max_length=3072,
max_length=255,
)
registration_id = models.TextField(verbose_name=_("Registration token"))
type = models.CharField(choices=DEVICE_TYPES, max_length=10)
Expand Down

0 comments on commit bb23901

Please sign in to comment.