#11353: use sphinx autodoc directives on geodjango application -------------------------------+-------------------------------------------- Reporter: yml | Owner: nobody Status: reopened | Milestone: Component: GIS | Version: 1.0 Resolution: | Keywords: patch Stage: Accepted | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------+-------------------------------------------- Changes (by ungenio):
* status: closed => reopened * resolution: fixed => Comment: This patch has introduced an error for me when doing a query on a Point field: {{{ Traceback: File "c:\development\workspace\django\src\django- trunk\django\core\handlers\base.py" in get_response 100. response = callback(request, *callback_args, **callback_kwargs) File "C:\Development\workspace\django\crossfitfind\apps\locator\sites.py" in index 148. self.geo_latlng: False} File "c:\development\workspace\django\src\django- trunk\django\db\models\manager.py" in filter 141. return self.get_query_set().filter(*args, **kwargs) File "c:\development\workspace\django\src\django- trunk\django\db\models\query.py" in filter 545. return self._filter_or_exclude(False, *args, **kwargs) File "c:\development\workspace\django\src\django- trunk\django\db\models\query.py" in _filter_or_exclude 563. clone.query.add_q(Q(*args, **kwargs)) File "c:\development\workspace\django\src\django- trunk\django\db\models\sql\query.py" in add_q 1100. can_reuse=used_aliases) File "c:\development\workspace\django\src\django- trunk\django\db\models\sql\query.py" in add_filter 995. negate=negate, process_extras=process_extras) File "c:\development\workspace\django\src\django- trunk\django\db\models\sql\query.py" in setup_joins 1163. "Choices are: %s" % (name, ", ".join(names))) Exception Type: FieldError at / Exception Value: Cannot resolve keyword '<django.contrib.gis.db.models.proxy.GeometryProxy object at 0x03E98410>' into field. }}} Changing the conditional to return None instead of self seems to solve the problem: {{{ if obj is None: # Accessed on a class, not an instance return None }}} -- Ticket URL: <http://code.djangoproject.com/ticket/11353#comment:6> 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-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.