Update Py3 compat
This commit is contained in:
parent
aa6e5e5479
commit
210c6d7712
27 changed files with 155 additions and 95 deletions
|
@ -1,5 +1,7 @@
|
|||
# coding: utf-8
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.contrib import admin
|
||||
|
@ -15,8 +17,8 @@ import django.utils.six as six
|
|||
import autocomplete_light
|
||||
|
||||
|
||||
def add_link_field(target_model='', field='', link_text=unicode,
|
||||
desc_text=unicode):
|
||||
def add_link_field(target_model='', field='', link_text=six.text_type,
|
||||
desc_text=six.text_type):
|
||||
def add_link(cls):
|
||||
reverse_name = target_model or cls.model.__name__.lower()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue