#11428: manage.py reset not working for proxy models
------------------------------------+---------------------------------------
          Reporter:  akaariai       |         Owner:  nobody
            Status:  new            |     Milestone:        
         Component:  Uncategorized  |       Version:  SVN   
        Resolution:                 |      Keywords:        
             Stage:  Unreviewed     |     Has_patch:  0     
        Needs_docs:  0              |   Needs_tests:  0     
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Old description:

> I have created a new project and a new app, testapp. In testapp/models.py
> I have:
>
> class Test(models.Model):
>     pass
>
> class Test2(Test):
>     class Meta:
>         proxy = True
>
> Running python manage.py sqlreset testapp I get the following output:
>
> BEGIN;
> DROP TABLE "testapp_test";
> DROP TABLE "testapp_test";
> CREATE TABLE "testapp_test" (
>     "id" integer NOT NULL PRIMARY KEY
> )
> ;
> CREATE TABLE "testapp_test" (
> )
> ;
> COMMIT;
>
> I am using Django version 1.1 beta 1 SVN-11196.

New description:

 I have created a new project and a new app, testapp. In testapp/models.py
 I have:

 {{{
 #!python
 class Test(models.Model):
     pass

 class Test2(Test):
     class Meta:
         proxy = True
 }}}
 Running `python manage.py sqlreset testapp` I get the following output:
 {{{
 BEGIN;
 DROP TABLE "testapp_test";
 DROP TABLE "testapp_test";
 CREATE TABLE "testapp_test" (
     "id" integer NOT NULL PRIMARY KEY
 )
 ;
 CREATE TABLE "testapp_test" (
 )
 ;
 COMMIT;
 }}}
 I am using Django version 1.1 beta 1 SVN-11196.

Comment (by ramiro):

 (reformatted description)

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11428#comment:2>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to