Re: [Django] #18002: Typo in ReverseSingleRelatedObjectDescriptor

2012-04-12 Thread Django
#18002: Typo in ReverseSingleRelatedObjectDescriptor
-+-
 Reporter:  Bradley Ayers|Owner:  nobody
    |   Status:  closed
 Type:  Bug  |  Version:  1.4
Component:  Database layer   |   Resolution:  fixed
  (models, ORM)  | Triage Stage:  Accepted
 Severity:  Normal   |  Needs documentation:  0
 Keywords:   |  Patch needs improvement:  0
Has patch:  1|UI/UX:  0
  Needs tests:  1|
Easy pickings:  1|
-+-
Changes (by claudep):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [17904]:
 {{{
 #!CommitTicketReference repository="" revision="17904"
 Fixed #18002 -- Fixed typo in attribute name in
 ReverseSingleRelatedObjectDescriptor.
 }}}

-- 
Ticket URL: 
Django 
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.



Re: [Django] #18002: Typo in ReverseSingleRelatedObjectDescriptor

2012-04-02 Thread Django
#18002: Typo in ReverseSingleRelatedObjectDescriptor
-+-
 Reporter:  Bradley Ayers|Owner:  nobody
    |   Status:  new
 Type:  Bug  |  Version:  1.4
Component:  Database layer   |   Resolution:
  (models, ORM)  | Triage Stage:  Accepted
 Severity:  Normal   |  Needs documentation:  0
 Keywords:   |  Patch needs improvement:  0
Has patch:  1|UI/UX:  0
  Needs tests:  1|
Easy pickings:  1|
-+-
Changes (by claudep):

 * type:  Uncategorized => Bug
 * needs_tests:  0 => 1
 * stage:  Ready for checkin => Accepted


Comment:

 What about a test?

-- 
Ticket URL: 
Django 
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.



Re: [Django] #18002: Typo in ReverseSingleRelatedObjectDescriptor

2012-04-01 Thread Django
#18002: Typo in ReverseSingleRelatedObjectDescriptor
-+-
 Reporter:  Bradley Ayers|Owner:  nobody
    |   Status:  new
 Type:  Uncategorized|  Version:  1.4
Component:  Database layer   |   Resolution:
  (models, ORM)  | Triage Stage:  Ready for
 Severity:  Normal   |  checkin
 Keywords:   |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  1|
-+-
Changes (by ptone):

 * has_patch:  0 => 1
 * stage:  Unreviewed => Ready for checkin


-- 
Ticket URL: 
Django 
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.



Re: [Django] #18002: Typo in ReverseSingleRelatedObjectDescriptor

2012-03-29 Thread Django
#18002: Typo in ReverseSingleRelatedObjectDescriptor
-+-
 Reporter:  Bradley Ayers|Owner:  nobody
    |   Status:  new
 Type:  Uncategorized|  Version:  1.4
Component:  Database layer   |   Resolution:
  (models, ORM)  | Triage Stage:
 Severity:  Normal   |  Unreviewed
 Keywords:   |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  1|
-+-
Changes (by aaugustin):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Old description:

> This code uses ``_field`` instead of ``field``:
>
> {{{
> def __set__(self, instance, value):
> if instance is None:
> raise AttributeError("%s must be accessed via instance" %
> self._field.name)
> }}}
>
> Example:
>
> {{{
> >>> from django.contrib.auth.models import Permission
> >>> Permission.content_type.__set__(None, "foo")
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/Users/brad/work/awu/.env/lib/python2.7/site-
> packages/django/db/models/fields/related.py", line 356, in __set__
> raise AttributeError("%s must be accessed via instance" %
> self._field.name)
> AttributeError: 'ReverseSingleRelatedObjectDescriptor' object has no
> attribute '_field'
> }}}

New description:

 This code uses ``_field`` instead of ``field``:

 {{{
 def __set__(self, instance, value):
 if instance is None:
 raise AttributeError("%s must be accessed via instance" %
 self._field.name)
 }}}

 Example:

 {{{
 >>> from django.contrib.auth.models import Permission
 >>> Permission.content_type.__set__(None, "foo")
 Traceback (most recent call last):
   File "", line 1, in 
   File "/Users/brad/work/foo/.env/lib/python2.7/site-
 packages/django/db/models/fields/related.py", line 356, in __set__
 raise AttributeError("%s must be accessed via instance" %
 self._field.name)
 AttributeError: 'ReverseSingleRelatedObjectDescriptor' object has no
 attribute '_field'
 }}}

--

-- 
Ticket URL: 
Django 
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.



Re: [Django] #18002: Typo in ReverseSingleRelatedObjectDescriptor

2012-03-29 Thread Django
#18002: Typo in ReverseSingleRelatedObjectDescriptor
-+-
 Reporter:  Bradley Ayers|Owner:  nobody
    |   Status:  new
 Type:  Uncategorized|  Version:  1.4
Component:  Database layer   |   Resolution:
  (models, ORM)  | Triage Stage:
 Severity:  Normal   |  Unreviewed
 Keywords:   |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  1|
-+-
Changes (by aaugustin):

 * needs_docs:   => 0
 * needs_tests:   => 0
 * needs_better_patch:   => 0


Old description:

> This code uses ``_field`` instead of ``field``:
>
> {{{
> def __set__(self, instance, value):
> if instance is None:
> raise AttributeError("%s must be accessed via instance" %
> self._field.name)
> }}}
>
> Example:
>
> {{{
> >>> from django.contrib.auth.models import Permission
> >>> Permission.content_type.__set__(None, "foo")
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/Users/brad/work/awu/.env/lib/python2.7/site-
> packages/django/db/models/fields/related.py", line 356, in __set__
> raise AttributeError("%s must be accessed via instance" %
> self._field.name)
> AttributeError: 'ReverseSingleRelatedObjectDescriptor' object has no
> attribute '_field'
> }}}

New description:

 This code uses ``_field`` instead of ``field``:

 {{{
 def __set__(self, instance, value):
 if instance is None:
 raise AttributeError("%s must be accessed via instance" %
 self._field.name)
 }}}

 Example:

 {{{
 >>> from django.contrib.auth.models import Permission
 >>> Permission.content_type.__set__(None, "foo")
 Traceback (most recent call last):
   File "", line 1, in 
   File "/Users/brad/work/foo/.env/lib/python2.7/site-
 packages/django/db/models/fields/related.py", line 356, in __set__
 raise AttributeError("%s must be accessed via instance" %
 self._field.name)
 AttributeError: 'ReverseSingleRelatedObjectDescriptor' object has no
 attribute '_field'
 }}}

--

-- 
Ticket URL: 
Django 
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.