'A model with BigAutoField can be created.'

def test_model_with_bigautofield(self):

    def create_data(models, schema_editor):
        Author = models.get_model('test_author', 'Author')
        Book = models.get_model('test_book', 'Book')
        author1 = Author.objects.create(name='Hemingway')
        Book.objects.create(title='Old    Man    and    The    Sea', author=author1)
        Book.objects.create(id=(2 ** 33), title='A    farewell    to    arms', author=author1)
        author2 = Author.objects.create(id=(2 ** 33), name='Remarque')
        Book.objects.create(title='All    quiet    on    the    western    front', author=author2)
        Book.objects.create(title='Arc    de    Triomphe', author=author2)
    create_author = migrations.CreateModel('Author', [('id', models.BigAutoField(primary_key=True)), ('name', models.CharField(max_length=100))], options={})
    create_book = migrations.CreateModel('Book', [('id', models.BigAutoField(primary_key=True)), ('title', models.CharField(max_length=100)), ('author', models.ForeignKey(to='test_author.Author', on_delete=models.CASCADE))], options={})
    fill_data = migrations.RunPython(create_data)
    project_state = ProjectState()
    new_state = project_state.clone()
    with connection.schema_editor() as editor:
        create_author.state_forwards('test_author', new_state)
        create_author.database_forwards('test_author', editor, project_state, new_state)
    project_state = new_state
    new_state = new_state.clone()
    with connection.schema_editor() as editor:
        create_book.state_forwards('test_book', new_state)
        create_book.database_forwards('test_book', editor, project_state, new_state)
    project_state = new_state
    new_state = new_state.clone()
    with connection.schema_editor() as editor:
        fill_data.state_forwards('fill_data', new_state)
        fill_data.database_forwards('fill_data', editor, project_state, new_state)
