Browse Source

Fix PostgreSQL table names.

INADA Naoki 12 years ago
parent
commit
0c684a55e1
1 changed files with 2 additions and 5 deletions
  1. 2 5
      django/hello/world/models.py

+ 2 - 5
django/hello/world/models.py

@@ -1,16 +1,13 @@
 from django.db import models
 
-import os
-MYSQL = os.environ['DJANGO_DB'] == 'mysql'
-
 # Create your models here.
 
 class World(models.Model):
   randomnumber = models.IntegerField()
   class Meta:
-    db_table = 'World' if MYSQL else 'world'
+    db_table = 'World'
 
 class Fortune(models.Model):
   message = models.CharField(max_length=65535)
   class Meta:
-    db_table = 'Fortune' if MYSQL else 'fortune'
+    db_table = 'Fortune'