mirror of
https://github.com/django/django.git
synced 2025-10-14 20:41:00 +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:
parent
55933c86e7
commit
d0fabc0499
39 changed files with 338 additions and 331 deletions
|
@ -4,11 +4,11 @@
|
|||
Any method you add to a model will be available to instances.
|
||||
"""
|
||||
|
||||
from django.core import meta
|
||||
from django.db import models
|
||||
|
||||
class Article(meta.Model):
|
||||
headline = meta.CharField(maxlength=100)
|
||||
pub_date = meta.DateField()
|
||||
class Article(models.Model):
|
||||
headline = models.CharField(maxlength=100)
|
||||
pub_date = models.DateField()
|
||||
|
||||
def __repr__(self):
|
||||
return self.headline
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue