[Django] #22815: I am getting an error and msg for a "null" ( None) content in nome variable i think, but how to treat it?

6 views
Skip to first unread message

Django

unread,
Jun 12, 2014, 1:21:33 AM6/12/14
to django-...@googlegroups.com
#22815: I am getting an error and msg for a "null" ( None) content in nome variable
i think, but how to treat it?
----------------------------------------------+----------------------
Reporter: marcus.dung@… | Owner: nobody
Type: Bug | Status: new
Component: Database layer (models, ORM) | Version: 1.4
Severity: Normal | Keywords: None GET
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+----------------------
AttributeError at /admin/projeto_cineo_acerto/termo_ou_fraseologismo/3977/
'NoneType' object has no attribute 'nome'
Request Method: GET
Request URL:
http://intranet.reconscientia.org/admin/projeto_cineo_acerto/termo_ou_fraseologismo/3977/
Django Version: 1.4.1
Exception Type: AttributeError
Exception Value:
'NoneType' object has no attribute 'nome'
Exception Location:
/home/recons/webapps/intranet/consmatic/projeto_cineo_acerto/models.py in
__unicode__, line 227
Python Executable: /usr/local/bin/python
Python Version: 2.7.5
Python Path:
['/home/recons/webapps/intranet',
'/home/recons/webapps/intranet/consmatic',
'/home/recons/webapps/intranet/lib/python2.7',
'/usr/local/lib/python27.zip',
'/usr/local/lib/python2.7',
'/usr/local/lib/python2.7/plat-linux2',
'/usr/local/lib/python2.7/lib-tk',
'/usr/local/lib/python2.7/lib-old',
'/usr/local/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/site-packages',
'/usr/local/lib/python2.7/site-packages/PIL']
Server time: Thu, 12 Jun 2014 02:11:03 -0300

--
Ticket URL: <https://code.djangoproject.com/ticket/22815>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 12, 2014, 1:31:14 AM6/12/14
to django-...@googlegroups.com
#22815: I am getting an error and msg for a "null" ( None) content in nome variable
i think, but how to treat it?
-------------------------------------+-------------------------------------

Reporter: marcus.dung@… | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.4
(models, ORM) | Resolution:
Severity: Normal | Triage Stage:
Keywords: None GET | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by marcus.dung@…):

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


Comment:

The models.py, where the bug occurs is entirely browsed on the attached
file.
On lines 226 and 227, i try tu return Null values to Django Model field
self.variavel.nome...
I have tried to treat this None returns in many ways but i couldn't.
I would thank a lot for any help here.

--
Ticket URL: <https://code.djangoproject.com/ticket/22815#comment:1>

Django

unread,
Jun 12, 2014, 2:09:35 AM6/12/14
to django-...@googlegroups.com
#22815: I am getting an error and msg for a "null" ( None) content in nome variable
i think, but how to treat it?
-------------------------------------+-------------------------------------
Reporter: marcus.dung@… | Owner: nobody
Type: Bug | Status: closed

Component: Database layer | Version: 1.4
(models, ORM) | Resolution: invalid

Severity: Normal | Triage Stage:
Keywords: None GET | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by aaugustin):

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


Comment:

Please see
https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels,
thank you.

--
Ticket URL: <https://code.djangoproject.com/ticket/22815#comment:2>

Reply all
Reply to author
Forward
0 new messages