Last active
August 29, 2015 14:03
-
-
Save rclark72/5c46d5d5e36d63b2ffdc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Old Models | |
class BasePage(models.Model): | |
title = models.CharField(max_length=2048, blank=True) | |
class Meta: | |
abstract = True | |
class Page(BasePage): | |
pass | |
class HomePage(Page): | |
content = models.CharField(max_length=2048, blank=True) | |
#### New models | |
class BasePage(models.Model): | |
title = models.CharField(max_length=2048, blank=True) | |
class Meta: | |
abstract = True | |
class Page(BasePage): | |
pass | |
class HomePage(BasePage): | |
content = models.CharField(max_length=2048, blank=True) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment