mousadialo / django-profile

Automatically exported from code.google.com/p/django-profile
BSD 2-Clause "Simplified" License
2 stars 0 forks source link

hard coded media url #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
class Avatar(models.Model): 
...
def get_absolute_url(self):
        return "/site_media/%s" % self.photo

site_media is hardcoded
It would be better to get this url from settings (settings.MEDIA_URL)

Thanks

Original issue reported on code.google.com by ppr.vit...@gmail.com on 5 Mar 2008 at 2:15

GoogleCodeExporter commented 8 years ago
Correct. I'm going to fix it. The next version 0.2.1 will incorporate these 
changes.

Original comment by david.ru...@gmail.com on 5 Mar 2008 at 2:54

GoogleCodeExporter commented 8 years ago
Solved

Original comment by david.ru...@gmail.com on 6 Apr 2008 at 3:03