mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Merged regressiontests and modeltests into the test root.
This commit is contained in:
0
tests/admin_scripts/complex_app/__init__.py
Normal file
0
tests/admin_scripts/complex_app/__init__.py
Normal file
0
tests/admin_scripts/complex_app/admin/__init__.py
Normal file
0
tests/admin_scripts/complex_app/admin/__init__.py
Normal file
8
tests/admin_scripts/complex_app/admin/foo.py
Normal file
8
tests/admin_scripts/complex_app/admin/foo.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.contrib import admin
|
||||
|
||||
from ..models.foo import Foo
|
||||
|
||||
|
||||
admin.site.register(Foo)
|
||||
4
tests/admin_scripts/complex_app/models/__init__.py
Normal file
4
tests/admin_scripts/complex_app/models/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from .bar import Bar
|
||||
from .foo import Foo
|
||||
|
||||
__all__ = ['Foo', 'Bar']
|
||||
11
tests/admin_scripts/complex_app/models/bar.py
Normal file
11
tests/admin_scripts/complex_app/models/bar.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.db import models
|
||||
|
||||
from ..admin import foo
|
||||
|
||||
|
||||
class Bar(models.Model):
|
||||
name = models.CharField(max_length=5)
|
||||
class Meta:
|
||||
app_label = 'complex_app'
|
||||
7
tests/admin_scripts/complex_app/models/foo.py
Normal file
7
tests/admin_scripts/complex_app/models/foo.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Foo(models.Model):
|
||||
name = models.CharField(max_length=5)
|
||||
class Meta:
|
||||
app_label = 'complex_app'
|
||||
Reference in New Issue
Block a user