robertvari

Save photo into user folder

Dec 28th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. def photo_directory_path(instance, filename):
  2.     return '{0}/{1}'.format(instance.user, filename)
Add Comment
Please, Sign In to add comment