Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Tweaked the validation test models to avoid tripping over the fact th…

…at Oracle doesn't like columns named 'number'.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12358 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 33b1036f6f6b1a1bf50254db093a13f7b19a4873 1 parent 0741fb6
Karen Tracey authored January 29, 2010

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  tests/modeltests/validation/models.py
4  tests/modeltests/validation/models.py
@@ -11,7 +11,7 @@ def validate_answer_to_universe(value):
11 11
 class ModelToValidate(models.Model):
12 12
     name = models.CharField(max_length=100)
13 13
     created = models.DateTimeField(default=datetime.now)
14  
-    number = models.IntegerField()
  14
+    number = models.IntegerField(db_column='number_val')
15 15
     parent = models.ForeignKey('self', blank=True, null=True, limit_choices_to={'number': 10})
16 16
     email = models.EmailField(blank=True)
17 17
     url = models.URLField(blank=True)
@@ -47,7 +47,7 @@ class UniqueForDateModel(models.Model):
47 47
 
48 48
 class CustomMessagesModel(models.Model):
49 49
     other  = models.IntegerField(blank=True, null=True)
50  
-    number = models.IntegerField(
  50
+    number = models.IntegerField(db_column='number_val',
51 51
         error_messages={'null': 'NULL', 'not42': 'AAARGH', 'not_equal': '%s != me'},
52 52
         validators=[validate_answer_to_universe]
53 53
     )

0 notes on commit 33b1036

Please sign in to comment.
Something went wrong with that request. Please try again.