Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/swappable_models/models.py
blob: c5b4425489a2018085c5ccfc2d11b92a91c1cb85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from django.db import models


class Article(models.Model):
    title = models.CharField(max_length=100)
    publication_date = models.DateField()

    class Meta:
        swappable = 'TEST_ARTICLE_MODEL'


class AlternateArticle(models.Model):
    title = models.CharField(max_length=100)
    publication_date = models.DateField()
    byline = models.CharField(max_length=100)