Monday, February 21, 2022

Re: How to compare two image field properly

Thanks but, no.
I didn't mean the comparing content of the files.

19 Şub 2022 Cmt 21:55 tarihinde <tlockhart1976@gmail.com> şunu yazdı:
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.

--
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/97725F33-C463-4CE5-8EDA-DEBE2A9A37FA%40gmail.com.

--
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/CACp8TZh8_TeBAs6qE3k-UzeNzb8GGw34mGDqD60FT0eoJRCKJA%40mail.gmail.com.

No comments:

Post a Comment