Update models.py

Added format check as example used https://github.com/torchbox/wagtail/blob/master/wagtail/wagtailimages/models.py