If the image data is huge, that could take a long time.
Maybe you can just compare the checksum?
On Sun, 27 Feb 2022 at 23:31, Azzam Codes wrote:
> one way that i know, not sure if best way to do it,
> but you could first extract the fields of your model as:
> `modelAFields = ModelA._meta.fiel
one way that i know, not sure if best way to do it,
but you could first extract the fields of your model as:
`modelAFields = ModelA._meta.fields`
`modelBFields = ModelB._meta.fields`
then extract your image field eg.:
`imageAField = modelAFields[0]`
`imageBField = modelBFields[0]`
then to disp
Thanks but, no.
I didn't mean the comparing content of the files.
19 Şub 2022 Cmt 21:55 tarihinde şunu yazdı:
> OpenCV
>
> - Tom
>
> On Feb 19, 2022, at 2:27 AM, Sencer Hamarat
> wrote:
>
>
> Hi,
>
> I have two different models which include image fields individually.
>
> Is there a proper wa
OpenCV
- Tom
> On Feb 19, 2022, at 2:27 AM, Sencer Hamarat 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_nam
4 matches
Mail list logo