I know this has been asked multiple times but the solution that everyone reaches (and the documentation) doesn't seem to be working for me...
Trying to remove first character
Code is {{ picture.picture_path|slice:"1:" }}
but it still comes out as ./DOF_mrD5T49.jpg
. Trying to get of the leading dot. Is it possible that I can't remove it because it's a the "name" of picture_path
?
Pertinent model code:
class Picture(models.Model):picture_path = models.ImageField(blank=True)def __str__(self):return self.picture_path.name