Re: [Django] #14283: AttributeError on admin detail page after r13708

2010-11-15 Thread Django
#14283: AttributeError on admin detail page after r13708
--+-
  Reporter:  rene.p...@repro-mayr.de  | Owner:  nobody
Status:  closed   | Milestone:
 Component:  Contrib apps |   Version:  1.2   
Resolution:  duplicate|  Keywords:
 Stage:  Accepted | Has_patch:  1 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  1|  
--+-
Changes (by pwr):

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

Comment:

 Fixed in [14555], see also ticket #14670.

-- 
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-upda...@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] #14283: AttributeError on admin detail page after r13708

2010-10-18 Thread Django
#14283: AttributeError on admin detail page after r13708
--+-
  Reporter:  rene.p...@repro-mayr.de  | Owner:  nobody
Status:  new  | Milestone:
 Component:  Contrib apps |   Version:  1.2   
Resolution:   |  Keywords:
 Stage:  Accepted | Has_patch:  1 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  1|  
--+-
Changes (by willhardy):

 * cc: dja...@willhardy.com.au (added)

-- 
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-upda...@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] #14283: AttributeError on admin detail page after r13708

2010-10-14 Thread Django
#14283: AttributeError on admin detail page after r13708
--+-
  Reporter:  rene.p...@repro-mayr.de  | Owner:  nobody
Status:  new  | Milestone:
 Component:  Contrib apps |   Version:  1.2   
Resolution:   |  Keywords:
 Stage:  Accepted | Has_patch:  1 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  1|  
--+-
Changes (by rokclimb15):

  * owner:  rokclimb15 => nobody
  * status:  assigned => new

-- 
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-upda...@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] #14283: AttributeError on admin detail page after r13708

2010-10-14 Thread Django
#14283: AttributeError on admin detail page after r13708
--+-
  Reporter:  rene.p...@repro-mayr.de  | Owner:  rokclimb15
Status:  assigned | Milestone:
 Component:  Contrib apps |   Version:  1.2   
Resolution:   |  Keywords:
 Stage:  Accepted | Has_patch:  1 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  1|  
--+-
Changes (by rokclimb15):

 * cc: rokclim...@gmail.com (added)
  * owner:  nobody => rokclimb15
  * status:  new => assigned

-- 
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-upda...@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] #14283: AttributeError on admin detail page after r13708

2010-10-14 Thread Django
#14283: AttributeError on admin detail page after r13708
--+-
  Reporter:  rene.p...@repro-mayr.de  | Owner:  nobody
Status:  new  | Milestone:
 Component:  Contrib apps |   Version:  1.2   
Resolution:   |  Keywords:
 Stage:  Accepted | Has_patch:  1 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  1|  
--+-
Comment (by Jay States):

 I want to confirm that I had the same problem and the patch works.

-- 
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-upda...@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] #14283: AttributeError on admin detail page after r13708

2010-10-12 Thread Django
#14283: AttributeError on admin detail page after r13708
--+-
  Reporter:  rene.p...@repro-mayr.de  | Owner:  nobody
Status:  new  | Milestone:
 Component:  Contrib apps |   Version:  1.2   
Resolution:   |  Keywords:
 Stage:  Accepted | Has_patch:  1 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  1|  
--+-
Changes (by gabrielhurley):

  * has_patch:  0 => 1
  * stage:  Unreviewed => Accepted

Comment:

 @simon29: there was no need to reset the status to "Unreviewed". The
 ticket is still accepted. Also, there is still a patch, even if it needs
 improvement, so unchecking the "has patch" box is also unnecessary.

 If you're still seeing failures after applying the latest patch, the best
 thing to do is to provide a failing unit test. Thanks!

-- 
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-upda...@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] #14283: AttributeError on admin detail page after r13708

2010-10-12 Thread Django
#14283: AttributeError on admin detail page after r13708
--+-
  Reporter:  rene.p...@repro-mayr.de  | Owner:  nobody
Status:  new  | Milestone:
 Component:  Contrib apps |   Version:  1.2   
Resolution:   |  Keywords:
 Stage:  Unreviewed   | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  1|  
--+-
Changes (by simon29):

  * needs_better_patch:  0 => 1
  * has_patch:  1 => 0
  * stage:  Accepted => Unreviewed

-- 
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-upda...@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] #14283: AttributeError on admin detail page after r13708

2010-10-12 Thread Django
#14283: AttributeError on admin detail page after r13708
--+-
  Reporter:  rene.p...@repro-mayr.de  | Owner:  nobody
Status:  new  | Milestone:
 Component:  Contrib apps |   Version:  1.2   
Resolution:   |  Keywords:
 Stage:  Accepted | Has_patch:  1 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Changes (by simon29):

 * cc: simon29 (added)

Comment:

 Same error, same stacktrace exactly.

 This time with an inline that has two keys back to the "parent" model and
 uses "fk_name" to select which one to link by.

 So, this isn't just a GenericForeignKey issue. Somehow,
 formfield_for_dbfield() is getting a None request object in other
 instances also (haven't dug any deeper just yet).

-- 
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-upda...@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] #14283: AttributeError on admin detail page after r13708

2010-10-04 Thread Django
#14283: AttributeError on admin detail page after r13708
--+-
  Reporter:  rene.p...@repro-mayr.de  | Owner:  nobody
Status:  new  | Milestone:
 Component:  Uncategorized|   Version:  1.2   
Resolution:   |  Keywords:
 Stage:  Accepted | Has_patch:  1 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Changes (by mk):

  * has_patch:  0 => 1
  * stage:  Unreviewed => Accepted

Comment:

 Need to curry formfield_for_dbfield in contenttypes/generic.py. Patch
 attached.

-- 
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-upda...@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] #14283: AttributeError on admin detail page after r13708

2010-10-04 Thread Django
#14283: AttributeError on admin detail page after r13708
--+-
  Reporter:  rene.p...@repro-mayr.de  | Owner:  nobody
Status:  new  | Milestone:
 Component:  Contrib apps |   Version:  1.2   
Resolution:   |  Keywords:
 Stage:  Accepted | Has_patch:  1 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Changes (by gabrielhurley):

  * component:  Uncategorized => Contrib apps

-- 
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-upda...@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] #14283: AttributeError on admin detail page after r13708

2010-09-22 Thread Django
#14283: AttributeError on admin detail page after r13708
--+-
  Reporter:  rene.p...@repro-mayr.de  | Owner:  nobody
Status:  new  | Milestone:
 Component:  Uncategorized|   Version:  1.2   
Resolution:   |  Keywords:
 Stage:  Unreviewed   | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Comment (by rene.p...@repro-mayr.de):

 I have spent some more time tracking down this problem. Here is what I
 have found out.

 There are three model classes involved:

  * Model A, no fields required
  * Model B, no fields required
  * Model C, with a generic foreign key and a regular foreign key to model
 B

 And there are also two admin classes involved:

  * ModelCInline, a !GenericTabularInline for model C
  * ModelAAdmin, which includes ModelCInline
  * In addition, model B must be registered with the admin site, but does
 not need any special options

 When I try to add or change instances of model A on the admin site, I get
 an !AttributeError with the following traceback:

 {{{
 Environment:

 Request Method: GET
 Request URL: http://localhost:8000/admin/testapp/modela/add/
 Django Version: 1.3 pre-alpha SVN-13865
 Python Version: 2.7.0
 Installed Applications:
 ['django.contrib.auth',
  'django.contrib.contenttypes',
  'django.contrib.sessions',
  'django.contrib.sites',
  'django.contrib.messages',
  'django.contrib.admin',
  'testcase14283.testapp']
 Installed Middleware:
 ('django.middleware.common.CommonMiddleware',
  'django.contrib.sessions.middleware.SessionMiddleware',
  'django.middleware.csrf.CsrfViewMiddleware',
  'django.contrib.auth.middleware.AuthenticationMiddleware',
  'django.contrib.messages.middleware.MessageMiddleware')


 Traceback:
 File "/Users/rpuls/Library/Python/django/core/handlers/base.py" in
 get_response
   100. response = callback(request, *callback_args,
 **callback_kwargs)
 File "/Users/rpuls/Library/Python/django/contrib/admin/options.py" in
 wrapper
   245. return self.admin_site.admin_view(view)(*args,
 **kwargs)
 File "/Users/rpuls/Library/Python/django/utils/decorators.py" in
 _wrapped_view
   76. response = view_func(request, *args, **kwargs)
 File "/Users/rpuls/Library/Python/django/views/decorators/cache.py" in
 _wrapped_view_func
   78. response = view_func(request, *args, **kwargs)
 File "/Users/rpuls/Library/Python/django/contrib/admin/sites.py" in inner
   190. return view(request, *args, **kwargs)
 File "/Users/rpuls/Library/Python/django/utils/decorators.py" in _wrapper
   21. return decorator(bound_func)(*args, **kwargs)
 File "/Users/rpuls/Library/Python/django/utils/decorators.py" in
 _wrapped_view
   76. response = view_func(request, *args, **kwargs)
 File "/Users/rpuls/Library/Python/django/utils/decorators.py" in
 bound_func
   17. return func(self, *args2, **kwargs2)
 File "/Users/rpuls/Library/Python/django/db/transaction.py" in
 _commit_on_success
   299. res = func(*args, **kw)
 File "/Users/rpuls/Library/Python/django/contrib/admin/options.py" in
 add_view
   822.self.inline_instances):
 File "/Users/rpuls/Library/Python/django/contrib/admin/options.py" in
 get_formsets
   421. yield inline.get_formset(request, obj)
 File "/Users/rpuls/Library/Python/django/contrib/contenttypes/generic.py"
 in get_formset
   403. return generic_inlineformset_factory(self.model,
 **defaults)
 File "/Users/rpuls/Library/Python/django/contrib/contenttypes/generic.py"
 in generic_inlineformset_factory
   369.fields=fields, exclude=exclude,
 max_num=max_num)
 File "/Users/rpuls/Library/Python/django/forms/models.py" in
 modelformset_factory
   685.  formfield_callback=formfield_callback)
 File "/Users/rpuls/Library/Python/django/forms/models.py" in
 modelform_factory
   423. return ModelFormMetaclass(class_name, (form,),
 form_class_attrs)
 File "/Users/rpuls/Library/Python/django/forms/models.py" in __new__
   227.   opts.exclude, opts.widgets,
 formfield_callback)
 File "/Users/rpuls/Library/Python/django/forms/models.py" in
 fields_for_model
   185. formfield = formfield_callback(f, **kwargs)
 File "/Users/rpuls/Library/Python/django/contrib/admin/options.py" in
 formfield_for_dbfield
   113.
 related_modeladmin.has_add_permission(request))
 File "/Users/rpuls/Library/Python/django/contrib/admin/options.py" in
 has_add_permission
   292. return 

Re: [Django] #14283: AttributeError on admin detail page after r13708

2010-09-13 Thread Django
#14283: AttributeError on admin detail page after r13708
--+-
  Reporter:  rene.p...@repro-mayr.de  | Owner:  nobody
Status:  new  | Milestone:
 Component:  Uncategorized|   Version:  1.2   
Resolution:   |  Keywords:
 Stage:  Unreviewed   | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Changes (by rene.p...@repro-mayr.de):

  * needs_better_patch:  => 0
  * summary:  AttributeError: 'NoneType' object has no attribute 'user' on
  admin detail page => AttributeError on admin
  detail page after r13708
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 This actually seems to be caused by r13708. When I revert this changeset,
 the detail page appears normally again.

-- 
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-upda...@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.