Skip to content

Commit 808e6b5

Browse files
committed
Update Template model to use BigAutoField for ID and remove obsolete migration (jazzband#157)
1 parent a4db73e commit 808e6b5

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

dbtemplates/migrations/0003_alter_template_id.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

dbtemplates/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class Template(models.Model):
1818
Defines a template model for use with the database template loader.
1919
The field ``name`` is the equivalent to the filename of a static template.
2020
"""
21-
id = models.AutoField(primary_key=True, verbose_name=_('ID'),
22-
serialize=False, auto_created=True)
21+
id = models.BigAutoField(primary_key=True, verbose_name=_('ID'),
22+
serialize=False, auto_created=True)
2323
name = models.CharField(_('name'), max_length=100,
2424
help_text=_("Example: 'flatpages/default.html'"))
2525
content = models.TextField(_('content'), blank=True)

0 commit comments

Comments
 (0)