Skip to content

Commit

Permalink
Merge pull request #75 from btomtom5/develop
Browse files Browse the repository at this point in the history
Changed __unicode__ to __str__
  • Loading branch information
bbengfort committed Jun 5, 2016
2 parents fe66874 + dfebda2 commit 111eaf8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions account/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
## Configuration
##########################################################################


class AccountConfig(AppConfig):
name = 'account'

Expand Down
7 changes: 4 additions & 3 deletions dataset/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
## Helper Models
##########################################################################


class License(TimeStampedModel):
"""
Contains license boilerplate for datasets.
Expand All @@ -45,7 +46,7 @@ class License(TimeStampedModel):
class Meta:
db_table = 'license'

def __unicode__(self):
def __str__(self):
return self.title

##########################################################################
Expand Down Expand Up @@ -86,7 +87,7 @@ def get_api_detail_url(self):
def get_absolute_url(self):
return reverse('dataset:detail', args=(self.owner.name, self.name))

def __unicode__(self):
def __str__(self):
return self.name

##########################################################################
Expand Down Expand Up @@ -159,7 +160,7 @@ def read_csv_headers(self):
return header, length
return None # ?? what to return for not a csv

def __unicode__(self):
def __str__(self):
return self.name


Expand Down
1 change: 1 addition & 0 deletions members/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
## Inline Adminstration
##########################################################################


class ProfileInline(admin.StackedInline):
"""
Inline administration descriptor for profile object
Expand Down

0 comments on commit 111eaf8

Please sign in to comment.