tangentlabs/django-oscar — pull request #283 by eddwardo (2012-08-23 20:41:53+00:00)
Title: Flatpages in OSCAR_CORE_APPS

Science we have this : #121 Managing flatpages from the dashboard without flatpages in oscar_core_apps django will rise error in http://host/dashboard/pages/.

More about the case :
```python
'NoneType' object has no attribute 'objects'
```
This is cause by __oscar/apps/dashboard/pages/views.py__ in those lines:

```python
from django.db.models.loading import get_model
FlatPage = get_model('flatpages', 'FlatPage')
model = FlatPage # PageListView class
queryset = self.model.objects.all().order_by('title') # this line rises NoneType error
```

This came from ipdb (breakpoint directly befor rising exception):

ipdb> from django.db.models.loading import get_model
ipdb> FlatPage = get_model('flatpages', 'FlatPage')
ipdb> FlatPage
ipdb> FlatPage is None
True