1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

magic-removal: Moved django.core.meta to django.db.models

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1631 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty
2005-12-14 05:02:51 +00:00
parent 55933c86e7
commit d0fabc0499
39 changed files with 338 additions and 331 deletions

View File

@@ -3,14 +3,14 @@
To perform an OR lookup, or a lookup that combines ANDs and ORs, use the
``complex`` keyword argument, and pass it an expression of clauses using the
variable ``django.core.meta.Q``.
variable ``django.db.models.Q``.
"""
from django.core import meta
from django.db import models
class Article(meta.Model):
headline = meta.CharField(maxlength=50)
pub_date = meta.DateTimeField()
class Article(models.Model):
headline = models.CharField(maxlength=50)
pub_date = models.DateTimeField()
class META:
ordering = ('pub_date',)
@@ -19,7 +19,7 @@ class Article(meta.Model):
API_TESTS = """
>>> from datetime import datetime
>>> from django.core.meta import Q
>>> from django.db.models import Q
>>> a1 = Article(headline='Hello', pub_date=datetime(2005, 11, 27))
>>> a1.save()