Support apps with custom label.
This commit is contained in:
1 parent
572ab55cb0
commit
0ee05a2b30
10 files changed
+125
-22
No files matched your search
Whitespace-only changes.
@@ -0,0 +1,8 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class DefaultConfig(AppConfig):
|
||||
name = "tests.test_project.app_with_custom_name"
|
||||
label = "my_custom_name"
|
||||
@@ -0,0 +1,30 @@
|
||||
# Generated by Django 2.2 on 2019-07-29 21:21
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
initial = True
|
||||
|
||||
dependencies = []
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="A",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.AutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("int_field", models.IntegerField()),
|
||||
("char_field", models.CharField(max_length=255)),
|
||||
],
|
||||
)
|
||||
]
|
||||
Whitespace-only changes.
@@ -0,0 +1,8 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from django.db import models
|
||||
|
||||
|
||||
class A(models.Model):
|
||||
int_field = models.IntegerField()
|
||||
char_field = models.CharField(max_length=255)
|
||||
Reference in new issue
Block a user