#6016: Admin crash when deleting an object
--------------------------------+-------------------------------------------
   Reporter:  [EMAIL PROTECTED]  |                Owner:  nobody         
     Status:  new               |            Component:  Admin interface
    Version:  SVN               |           Resolution:                 
   Keywords:  unicode delete    |                Stage:  Accepted       
  Has_patch:  0                 |           Needs_docs:  0              
Needs_tests:  0                 |   Needs_better_patch:  0              
--------------------------------+-------------------------------------------
Changes (by gwilson):

  * needs_better_patch:  => 0
  * stage:  Unreviewed => Accepted
  * needs_tests:  => 0
  * needs_docs:  => 0

Old description:

> I get this error:
> DjangoUnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in
> position 0: ordinal not in range(128). You passed in
> DjangoUnicodeDecodeError('ascii', '\xc2\xbfProbando una pregunta? -> ',
> 0, 1, 'ordinal not in range(128)') (<class
> 'django.utils.encoding.DjangoUnicodeDecodeError'>)
>
> when I try to delete an object from the admin zone. The character ¿
> breaks it.
>
> More info. Model:
> class Encuesta( models.Model ):
>     ...
>     pregunta = models.CharField( max_length=255 )
>
>    def __unicode__( self ):
>         return self.pregunta
>    ...
>
> Thanks

New description:

 I get this error:
 {{{
 DjangoUnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position
 0: ordinal not in range(128). You passed in
 DjangoUnicodeDecodeError('ascii', '\xc2\xbfProbando una pregunta? -> ', 0,
 1, 'ordinal not in range(128)') (<class
 'django.utils.encoding.DjangoUnicodeDecodeError'>)
 }}}

 when I try to delete an object from the admin zone. The character ¿ breaks
 it.

 More info. Model:
 {{{
 #!python
 class Encuesta( models.Model ):
     ...
     pregunta = models.CharField( max_length=255 )

     def __unicode__( self ):
         return self.pregunta
    ...
 }}}

 Thanks

Comment:

 fixed description formatting.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/6016#comment:1>
Django Code <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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to