Saturday, February 19, 2022

Re: How to compare two image field properly

OpenCV

- Tom

On Feb 19, 2022, at 2:27 AM, Sencer Hamarat <sencerhamarat@gmail.com> wrote:


Hi,

I have two different models which include image fields individually.

Is there a proper way to compare those imagefileds?

class ModelA(models.Model):
    file = models.ImageField(
        verbose_name=_('File'),
        blank=False,
        null=False,
        max_length=400
    )

class ModelB(models.Model):
    image = ImageField(
        verbose_name=_('Product Image'),
        max_length=400,
        default=static('images/default_thumbnail.png'),
    )


Also, I need to figure out how to track any change in a single image field.

Regards,
Sencer HAMARAT

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACp8TZhoLKhfpdn7UcrWajf%2BZ8snaNvFB8M29p4nF5eZ2f7iEg%40mail.gmail.com.

No comments:

Post a Comment