~ubuntu-branches/ubuntu/jaunty/python-django/jaunty

« back to all changes in this revision

Viewing changes to django/core/management/commands/sqlreset.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant, Eddy Mulyono
  • Date: 2008-09-16 12:18:47 UTC
  • mfrom: (1.1.5 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080916121847-mg225rg5mnsdqzr0
Tags: 1.0-1ubuntu1
* Merge from Debian (LP: #264191), remaining changes:
  - Run test suite on build.

[Eddy Mulyono]
* Update patch to workaround network test case failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.core.management.base import AppCommand
 
2
 
 
3
class Command(AppCommand):
 
4
    help = "Prints the DROP TABLE SQL, then the CREATE TABLE SQL, for the given app name(s)."
 
5
 
 
6
    output_transaction = True
 
7
 
 
8
    def handle_app(self, app, **options):
 
9
        from django.core.management.sql import sql_reset
 
10
        return u'\n'.join(sql_reset(app, self.style)).encode('utf-8')