dcramer / django-uuidfield

A UUIDField for Django
BSD 3-Clause "New" or "Revised" License
262 stars 115 forks source link

Form validation of mal-formed uuid is broken #31

Open julienaubert opened 10 years ago

julienaubert commented 10 years ago

While working on #30, I wrote this test:

class FormUUIDField(TestCase):

    def test_formfield_error(self):
        form = ManualUUIDForm({'uuid': '123'})
        self.assertFalse(form.is_valid())

This test fails. I did not check much, but I think the reason/fix is this:

I excluded the tests from that PR #30, as this is broken in the current version and can be fixed independently of #30.