florentin/django-niftyurls — Issue #1: 'NoneType' object has no attribute 'title'
Author: JKolya
Created: 2012-01-27 17:36:39+00:00
State: open

When I try to add a new feed I get "'NoneType' object has no attribute 'title'"

```
Environment:

Request Method: POST
Request URL: http://127.0.0.1:8000/admin/niftyurls/feed/add/

Django Version: 1.3
Python Version: 2.7.2
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'niftyurls']
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 "/usr/lib/pymodules/python2.7/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/pymodules/python2.7/django/contrib/admin/options.py" in wrapper
307. return self.admin_site.admin_view(view)(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/django/utils/decorators.py" in _wrapped_view
93. response = view_func(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/django/views/decorators/cache.py" in _wrapped_view_func
79. response = view_func(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/django/contrib/admin/sites.py" in inner
197. return view(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/django/utils/decorators.py" in _wrapper
28. return bound_func(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/django/utils/decorators.py" in _wrapped_view
93. response = view_func(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/django/utils/decorators.py" in bound_func
24. return func(self, *args2, **kwargs2)
File "/usr/lib/pymodules/python2.7/django/db/transaction.py" in inner
217. res = func(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/django/contrib/admin/options.py" in add_view
887. self.log_addition(request, new_object)
File "/usr/lib/pymodules/python2.7/django/contrib/admin/options.py" in log_addition
496. object_repr = force_unicode(object),
File "/usr/lib/pymodules/python2.7/django/utils/encoding.py" in force_unicode
71. s = unicode(s)
File "/var/www/django/popurl/niftyurls/models.py" in __unicode__
61. return u'%s - %s' % (self.source.title, self.title)

Exception Type: AttributeError at /admin/niftyurls/feed/add/
Exception Value: 'NoneType' object has no attribute 'title'
```