I am using Django-Photologue in my project. I want to generate image title, slug automatically during save, if not specified. As a newbie in Django, I dont know how to do this. If I have to customize Django-photologue, then how should I do it?
Thank you for the response. I am willing to use the dumb method that you suggested. Want to do something like that. But how should I customize the photologue.Photo class?
Currently I have a Many2Many Key relationship in MatrimonyProfile with photologue.Photo like this
images = models.ManyToManyField("photologue.Photo", through="Image", blank=True)
and the Image through model
class Image(BaseModel):
profile = models.ForeignKey(MatrimonyProfile, on_delete=models.CASCADE)
photo = models.ForeignKey(
"photologue.Photo", on_delete=models.CASCADE, related_name="+"
)
primary = models.BooleanField(default=False, blank=True)
Please help where and how to customize photologue.Photo to enter a default title