Add unused app with manytomany field

This commit is contained in:
David Wobrock committed 2019-10-21 22:25:01 +02:00
1 parent cbc5a623b0
commit ca6b623200
9 files changed
+80

No files matched your search

Whitespace-only changes.
@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.
@@ -0,0 +1,5 @@
from django.apps import AppConfig
class AppAddManytomanyFieldConfig(AppConfig):
name = "app_add_manytomany_field"
@@ -0,0 +1,41 @@
# Generated by Django 2.2 on 2019-09-20 20:01
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",
),
)
],
),
migrations.CreateModel(
name="B",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
)
],
),
]
@@ -0,0 +1,16 @@
# Generated by Django 2.2 on 2019-09-20 20:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("app_add_manytomany_field", "0001_initial")]
operations = [
migrations.AddField(
model_name="b",
name="many_to_many",
field=models.ManyToManyField(to="app_add_manytomany_field.A"),
)
]
Whitespace-only changes.
@@ -0,0 +1,9 @@
from django.db import models
class A(models.Model):
pass
class B(models.Model):
many_to_many = models.ManyToManyField(A)
@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.
@@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.