Re: How to create a fixed-length binary field with a unique constraint?

2017-07-13 Thread winkelmann
On Thursday, July 13, 2017 at 4:06:38 PM UTC+2, Tom Evans wrote: [...] > Guido: > > You can make your own custom database types quite simply (completely > untested): > > class FixedSizedBinaryField(models.BinaryField): > def __init__(self, num_bytes=None, *args, **kwargs): >

How to create a fixed-length binary field with a unique constraint?

2017-07-10 Thread Guido Winkelmann - Hornetsecurity
@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2450876.KIxDkREjN7%40nb-winkelmann. For more options,