Primary problem are stray bytestrings b""in old migrations. Solution is to remove the b prefix in those migrations.
Patch to catch them all:
vim $VIRTUAL_ENV/lib/python3.6/site-packages/django/db/models/manager.py
Import force_text and insert around the name attribute.
from django.utils.encoding import force_text
# ...
def contribute_to_class(self, model, name):
if not self.name:
self.name = name
self.model = model
setattr(model, force_text(name), ManagerDescriptor(self))
model._meta.add_manager(self)
Dpaw-utils
vim $VIRTUAL_ENV/lib/python3.6/site-packages/dpaw_utils/middleware.py
Change request.user.is_authenticated() to request.user.is_authenticated.
Fixed in git+git://github.com/dbca-wa/dpaw-utils@minimal.
Fixes
Logging
URL config
Some changes to
include()
, e.g.Migrations
Primary problem are stray bytestrings
b""
in old migrations. Solution is to remove theb
prefix in those migrations.Patch to catch them all:
Import force_text and insert around the
name
attribute.Dpaw-utils
Change
request.user.is_authenticated()
torequest.user.is_authenticated
. Fixed ingit+git://github.com/dbca-wa/dpaw-utils@minimal
.Point field
Change
.get_x()
to.x
, same for y.