Fix Django sequences with abstract base models.