Yeah, I was thinking myself this was a bit messy. Updated now to use `self.model._meta` instead.