Show
Ignore:
Timestamp:
09/10/08 08:51:58 (19 months ago)
Author:
JensDiemer
Message:

django API change update

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid_project/tests/install_section.py

    r1643 r1753  
    336336#        print "drop all tables...", 
    337337        from django.db import connection 
    338         from django.core.management.sql import table_names 
     338        table_names = connection.introspection.table_names() 
    339339 
    340340        cursor = connection.cursor() 
    341         for table_name in table_names(): 
     341        for table_name in table_names: 
    342342            statement = u"DROP TABLE %s;" % table_name 
    343343            cursor.execute(statement)