1
0
mirror of https://github.com/django/django.git synced 2025-10-29 08:36:09 +00:00

[1.5.x] Expanded tests added when fixing #14529.

To make sure changes in 35d1cd0 don't break anything. Refs #19505.

ad769efa85 from master.
This commit is contained in:
Ramiro Morales
2012-12-24 16:17:16 -03:00
parent 3ad34c231b
commit 3b32e5cc2d
3 changed files with 211 additions and 24 deletions

View File

@@ -548,11 +548,6 @@ class FoodDelivery(models.Model):
unique_together = (("driver", "restaurant"),)
class Paper(models.Model):
title = models.CharField(max_length=30)
author = models.CharField(max_length=30, blank=True, null=True)
@python_2_unicode_compatible
class CoverLetter(models.Model):
author = models.CharField(max_length=30)
@@ -562,6 +557,25 @@ class CoverLetter(models.Model):
return self.author
class Paper(models.Model):
title = models.CharField(max_length=30)
author = models.CharField(max_length=30, blank=True, null=True)
class ShortMessage(models.Model):
content = models.CharField(max_length=140)
timestamp = models.DateTimeField(null=True, blank=True)
@python_2_unicode_compatible
class Telegram(models.Model):
title = models.CharField(max_length=30)
date_sent = models.DateField(null=True, blank=True)
def __str__(self):
return self.title
class Story(models.Model):
title = models.CharField(max_length=100)
content = models.TextField()