Re: [Django] #14639: admin.site.register() does not check if the model is abstract (gives weird error)

2011-02-27 Thread Django
#14639: admin.site.register() does not check if the model is abstract (gives 
weird
error)
+---
   Reporter:  vdboor| Owner:  nobody
 Status:  closed| Milestone:
  Component:  django.contrib.admin  |   Version:  SVN   
 Resolution:  fixed |  Keywords:  error-messages
   Triage Stage:  Accepted  | Has patch:  1 
Needs documentation:  0 |   Needs tests:  1 
Patch needs improvement:  0 |  
+---
Changes (by julien):

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


Comment:

 This was fixed in [15636].

-- 
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] #14639: admin.site.register() does not check if the model is abstract (gives weird error)

2010-12-25 Thread Django
#14639: admin.site.register() does not check if the model is abstract (gives 
weird
error)
---+
  Reporter:  vdboor| Owner:  nobody
Status:  new   | Milestone:
 Component:  django.contrib.admin  |   Version:  SVN   
Resolution:|  Keywords:  error-messages
 Stage:  Accepted  | Has_patch:  1 
Needs_docs:  0 |   Needs_tests:  1 
Needs_better_patch:  0 |  
---+
Changes (by jezdez):

  * needs_tests:  0 => 1

-- 
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] #14639: admin.site.register() does not check if the model is abstract (gives weird error)

2010-11-17 Thread Django
#14639: admin.site.register() does not check if the model is abstract (gives 
weird
error)
---+
  Reporter:  vdboor| Owner:  nobody
Status:  new   | Milestone:
 Component:  django.contrib.admin  |   Version:  SVN   
Resolution:|  Keywords:  error-messages
 Stage:  Accepted  | Has_patch:  1 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by cdestigter):

  * has_patch:  0 => 1

-- 
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] #14639: admin.site.register() does not check if the model is abstract (gives weird error)

2010-11-13 Thread Django
#14639: admin.site.register() does not check if the model is abstract (gives 
weird
error)
---+
  Reporter:  vdboor| Owner:  nobody
Status:  new   | Milestone:
 Component:  django.contrib.admin  |   Version:  SVN   
Resolution:|  Keywords:  error-messages
 Stage:  Accepted  | Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by rasca):

  * version:  1.2 => SVN
  * stage:  Unreviewed => Accepted

Comment:

 I can confirm that it outputs this error.

-- 
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] #14639: admin.site.register() does not check if the model is abstract (gives weird error)

2010-11-07 Thread Django
#14639: admin.site.register() does not check if the model is abstract (gives 
weird
error)
---+
  Reporter:  vdboor| Owner:  nobody
Status:  new   | Milestone:
 Component:  django.contrib.admin  |   Version:  1.2   
Resolution:|  Keywords:  error-messages
 Stage:  Unreviewed| Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by vdboor):

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

Comment:

 Addition: it produces even more weird errors in the admin_tools dashboard,
 when viewing a specific app:

 {{{
 Caught AttributeError while rendering: 'NoneType' object has no attribute
 '_meta'
 }}}

 which happens somewhere in the `contenttypes` framework:

 {{{
 File "/usr/lib/python2.6/site-
 packages/admin_tools/dashboard/templatetags/admin_tools_dashboard_tags.py"
 in admin_tools_render_dashboard_css
   90. dashboard = get_dashboard(context, location)
 File "/usr/lib/python2.6/site-packages/admin_tools/dashboard/utils.py" in
 get_dashboard
   21. return get_app_index_dashboard(context)
 File "/usr/lib/python2.6/site-packages/admin_tools/dashboard/utils.py" in
 get_app_index_dashboard
   71. return getattr(mod, inst)(app_title, model_list)
 File "/usr/lib/python2.6/site-
 packages/admin_tools/dashboard/dashboards.py" in __init__
   304. include_list=self.get_app_content_types(),
 File "/usr/lib/python2.6/site-
 packages/admin_tools/dashboard/dashboards.py" in get_app_content_types
   184. in self.get_app_model_classes()]
 File "/usr/lib/python2.6/site-
 packages/django/contrib/contenttypes/models.py" in get_for_model
   40. self._add_to_cache(self.db, ct)
 File "/usr/lib/python2.6/site-
 packages/django/contrib/contenttypes/models.py" in _add_to_cache
   70. key = (model._meta.app_label,
 model._meta.object_name.lower())
 }}}

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



[Django] #14639: admin.site.register() does not check if the model is abstract (gives weird error)

2010-11-07 Thread Django
#14639: admin.site.register() does not check if the model is abstract (gives 
weird
error)
--+-
 Reporter:  vdboor|   Owner:  nobody
   Status:  new   |   Milestone:
Component:  django.contrib.admin  | Version:  1.2   
 Keywords:  error-messages|   Stage:  Unreviewed
Has_patch:  0 |  
--+-
 When an abstract model is registered with `admin.site.register()` it
 produces the following error later on:

 {{{
 type object '...' has no attribute '_default_manager'
 }}}

 This error does not make much sense unless you're already have more
 intimate knowledge of the framework. [[br]]
 To ease the learning curve of new developers, I think it would make sense
 to check whether the model is abstract or not.

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