Changes between Initial Version and Version 1 of Ticket #35594


Ignore:
Timestamp:
Jul 11, 2024, 8:14:00 AM (5 months ago)
Author:
Mark Gensler
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35594 – Description

    initial v1  
    99{{{
    1010class Book(models.Model):
    11     name = CharField(max_length=255, null=True)
     11    name = CharField(max_length=255, null=True, blank=True)
    1212
    1313    class Meta:
     
    2121> book = Book(name=None)
    2222> book.full_clean() # Should raise a `ValidationError` but doesn't.
    23 > book.save()  # The database raises an `IntegrityError`.
     23> book.save()  # The database raises a `UniqueViolation`.
    2424}}}
    2525
Back to Top