wafflesfm / batter

It makes Waffles.
Other
83 stars 18 forks source link

Python3 support #30

Closed superbobry closed 11 years ago

superbobry commented 11 years ago

I think we should follow Django guidelines on Python3, since the next release will support it.

jzelinskie commented 11 years ago

I asked about this on IRC previously, too. I really need to read through all of those guidelines. It looks like models should look like this:

from __future__ import unicode_literals
from django.utils.encoding import python_2_unicode_compatible

@python_2_unicode_compatible
class MyClass(object):
    def __str__(self):
        return "Instance of my class"
superbobry commented 11 years ago

Yup, exactly.

superbobry commented 11 years ago

A note about Py3 is now in our README.md.