mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 22:20:28 +00:00
Merge 1b3a0f6ac0 into 10e7de2eda
This commit is contained in:
commit
d01d693f52
2 changed files with 22 additions and 2 deletions
20
dbtemplates/migrations/0003_alter_template_id.py
Normal file
20
dbtemplates/migrations/0003_alter_template_id.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Generated by Django 4.2.23 on 2025-07-28 13:34
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("dbtemplates", "0002_alter_template_creation_date_and_more"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="template",
|
||||
name="id",
|
||||
field=models.BigAutoField(
|
||||
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
|
||||
),
|
||||
),
|
||||
]
|
||||
|
|
@ -18,8 +18,8 @@ class Template(models.Model):
|
|||
Defines a template model for use with the database template loader.
|
||||
The field ``name`` is the equivalent to the filename of a static template.
|
||||
"""
|
||||
id = models.AutoField(primary_key=True, verbose_name=_('ID'),
|
||||
serialize=False, auto_created=True)
|
||||
id = models.BigAutoField(primary_key=True, verbose_name=_('ID'),
|
||||
serialize=False, auto_created=True)
|
||||
name = models.CharField(_('name'), max_length=100,
|
||||
help_text=_("Example: 'flatpages/default.html'"))
|
||||
content = models.TextField(_('content'), blank=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue