Skip to content

Commit

Permalink
update get_upload function razisayyed#2
Browse files Browse the repository at this point in the history
  • Loading branch information
bochiedev authored Nov 23, 2019
1 parent 3fe761d commit 4b0bda2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ads/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def now_plus_1_day():


def get_upload_to(instance, filename):
return 'images/ads/%d/%s' % (instance.ad.title, filename)
return 'images/ads/{}/{}'.format(instance.ad.title, filename)



Expand Down

0 comments on commit 4b0bda2

Please sign in to comment.