~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to tests/regressiontests/swappable_models/models.py

  • Committer: Package Import Robot
  • Author(s): Luke Faraone, Jakub Wilk, Luke Faraone
  • Date: 2013-05-09 15:10:47 UTC
  • mfrom: (1.1.21) (4.4.27 sid)
  • Revision ID: package-import@ubuntu.com-20130509151047-aqv8d71oj9wvcv8c
Tags: 1.5.1-2
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Luke Faraone ]
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.db import models
 
2
 
 
3
 
 
4
class Article(models.Model):
 
5
    title =  models.CharField(max_length=100)
 
6
    publication_date = models.DateField()
 
7
 
 
8
    class Meta:
 
9
        swappable = 'TEST_ARTICLE_MODEL'
 
10
 
 
11
 
 
12
class AlternateArticle(models.Model):
 
13
    title =  models.CharField(max_length=100)
 
14
    publication_date = models.DateField()
 
15
    byline = models.CharField(max_length=100)