mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Merged regressiontests and modeltests into the test root.
This commit is contained in:
parent
b3d2ccb5bf
commit
89f40e3624
1050 changed files with 0 additions and 0 deletions
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'
|
Loading…
Add table
Add a link
Reference in a new issue