Usually code needs to be adapted to work with deferred models. The
class-based view issue you mentioned could be this fix for DetailView:
https://github.com/django/django/commit/86aaffa5a3510c007167d116cf4ad72b79e93f31
(fixed in Django 1.9). If not, please open a bug if the issue can be
reprodu
Hello,
I had a use case where I wanted to defer a field by default. I used the
get_queryset function in the manger like this to make it always happen.
def get_queryset(self):
return super().get_queryset().defer('bigfield')
It seems to work, however it introduces some very strange side ef
ANNOUNCING
eGenix.com mx Base Distribution
mxDateTime, mxTextTools, mxProxy, mxURL, mxUID,
mxBeeBase, mxStack, mxQueue, mxTools
Version 3.2.9
You can override the oscar analytics app by forking it:
https://django-oscar.readthedocs.org/en/releases-1.1/topics/fork_app.html
and then change it the way you want. You should pass a list with overridden
apps to the get_core_apps function:
INSTALLED_APPS = [
'all.apps.except.analytics',
]
4 matches
Mail list logo