mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-13 07:03:11 +00:00
* Update utils.py verify get_meta isn't none before requesting db_table * Add passenv to tox.ini * Fix test_explain in sqlite * add test that will cause error #226 * try to get around problem with PASSWORD in GitHub actions testing * fix tests broken not counting with other applications permissions --------- Co-authored-by: hho6643 <63743025+hho6643@users.noreply.github.com> Co-authored-by: Andrew Chen Wang <60190294+Andrew-Chen-Wang@users.noreply.github.com>
52 lines
1.5 KiB
Python
52 lines
1.5 KiB
Python
# Generated by Django 4.1.7 on 2023-03-10 19:33
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import django.db.models.functions.text
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
initial = True
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="TestModel",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("name", models.CharField(max_length=20)),
|
|
(
|
|
"owner",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
to=settings.AUTH_USER_MODEL,
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"ordering": ("name",),
|
|
},
|
|
),
|
|
migrations.AddConstraint(
|
|
model_name="testmodel",
|
|
constraint=models.UniqueConstraint(
|
|
fields=["name"],
|
|
condition=models.Q(owner=None),
|
|
name="unique_name",
|
|
),
|
|
),
|
|
]
|