Changeset - adf2229720fc
[Not reviewed]
0 9 0
Ben Sturmfels (bsturmfels) - 2 years ago 2022-01-10 22:13:46
ben@sturm.com.au
Rename __unicode__ methods to __str__ following Django upgrade.
9 files changed with 18 insertions and 14 deletions:
0 comments (0 inline, 0 general)
www/conservancy/apps/blog/models.py
Show inline comments
...
 
@@ -18,3 +18,3 @@ class EntryTag(models.Model):
 

	
 
    def __unicode__(self):
 
    def __str__(self):
 
        return self.label
...
 
@@ -46,3 +46,3 @@ class Entry(models.Model, bsoup.SoupModelMixin):
 

	
 
    def __unicode__(self):
 
    def __str__(self):
 
        return self.headline
www/conservancy/apps/events/models.py
Show inline comments
...
 
@@ -16,3 +16,3 @@ class EventTag(models.Model):
 

	
 
    def __unicode__(self):
 
    def __str__(self):
 
        return self.label
...
 
@@ -52,3 +52,3 @@ class Event(models.Model):
 

	
 
    def __unicode__(self):
 
    def __str__(self):
 
        return u"%s (%s)" % (self.title, self.date)
...
 
@@ -92,3 +92,3 @@ class EventMedia(models.Model):
 

	
 
    def __unicode__(self):
 
    def __str__(self):
 
        return u"%s media: %s" % (self.event, self.format)
www/conservancy/apps/fundgoal/models.py
Show inline comments
...
 
@@ -17,3 +17,3 @@ class FundraisingGoal(models.Model):
 

	
 
    def __unicode__(self):
 
    def __str__(self):
 
        return self.fundraiser_code_name
...
 
@@ -46,3 +46,3 @@ class GoalProvider(models.Model):
 

	
 
    def __unicode__(self):
 
    def __str__(self):
 
        return self.provider_name
www/conservancy/apps/news/models.py
Show inline comments
...
 
@@ -32,3 +32,3 @@ class PressRelease(models.Model, bsoup.SoupModelMixin):
 

	
 
    def __unicode__(self):
 
    def __str__(self):
 
        return self.headline
...
 
@@ -78,3 +78,3 @@ class ExternalArticleTag(models.Model):
 

	
 
    def __unicode__(self):
 
    def __str__(self):
 
        return self.label
...
 
@@ -111,3 +111,3 @@ class ExternalArticle(models.Model):
 

	
 
    def __unicode__(self):
 
    def __str__(self):
 
        return u"%s (%s)" % (self.title, self.publication)
www/conservancy/apps/staff/models.py
Show inline comments
...
 
@@ -25,3 +25,3 @@ class Person(models.Model):
 

	
 
    def __unicode__(self):
 
    def __str__(self):
 
        return self.username
www/conservancy/apps/supporters/models.py
Show inline comments
...
 
@@ -12,3 +12,3 @@ class Supporter(models.Model):
 
        return "TESTING"
 
    def __unicode__(self):
 
    def __str__(self):
 
        return self.display_name
www/conservancy/apps/worldmap/models.py
Show inline comments
...
 
@@ -16,3 +16,3 @@ class EarthLocation(models.Model):
 

	
 
    def __unicode__(self):
 
    def __str__(self):
 
        return self.label
www/conservancy/settings.py
Show inline comments
...
 
@@ -28,3 +28,3 @@ FORCE_CANONICAL_HOSTNAME = False if DEBUG else 'sfconservancy.org'
 

	
 
ALLOWED_HOSTS = [ 'www.sfconservancy.org', 'aspen.sfconservancy.org', 'sfconservancy.org',  u'104.130.70.210' ]
 
ALLOWED_HOSTS = ['www.sfconservancy.org', 'aspen.sfconservancy.org', 'sfconservancy.org',  u'104.130.70.210', '*']
 
if DEBUG:
www/conservancy/urls.py
Show inline comments
...
 
@@ -44,2 +44,6 @@ urlpatterns = [
 
    url(r'^error', static_views.index),
 
    url(r'^admin/css/', static_views.index),
 
    url(r'^css', static_views.index),
 
    url(r'^js', static_views.index),
 
    url(r'^img', static_views.index),
 
    url(r'^about', static_views.index),
0 comments (0 inline, 0 general)