Skip to content

Commit

Permalink
reb further
Browse files Browse the repository at this point in the history
  • Loading branch information
maiksprenger committed Feb 4, 2015
1 parent b57c6e6 commit df562f7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions src/oscar/core/phonenumber.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,6 @@ def __str__(self):
return self.format_as(fmt)
return self.raw_input

def __unicode__(self):
# Django calls force_text on PhoneNumber instances when populating
# a model form. Django 1.6's force_text implementation unfortunately
# checks for __unicode__ first, which is defined in the base class.
# As we're using the python_2_unicode_compatible decorator, in Python 2
# __unicode__ is already overwritten by the decorator.
# In Python 3, we can safely return __str__ because it returns unicode.
return self.__str__()

def is_valid(self):
"""
checks whether the number supplied is actually valid
Expand Down
1 change: 0 additions & 1 deletion tests/_site/myauth/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-

# Code will only work with Django >= 1.5. See tests/config.py
import re

from django.utils.translation import ugettext_lazy as _
Expand Down

0 comments on commit df562f7

Please sign in to comment.