def create_wall_segments(self, points):
        if len(points) < 2:
            return []
        points = map(Vec2d, points)
        for i in range(len(points)-1):
            v1 = Vec2d(points[i].x, points[i].y)
            v2 = Vec2d(points[i+1].x, points[i+1].y)
            wall_body = pm.Body()
            wall_shape = pm.Segment(wall_body, v1, v2, .0)
            wall_shape.friction = 1.0
            wall_shape.collision_type = COLLTYPE_DEFAULT
            self.space.add(wall_shape)
            self.walls.append(wall_shape)
A foreign key name isn't duplicated in form._meta fields (#21332).
dataset/ETHPy150Open estevaofon/angry-birds-python/pymunk-4.0.0/examples/playground.py/PhysicsDemo.create_wall_segments--crossover with--dataset/ETHPy150Open django/django/tests/inline_formsets/tests.py/InlineFormsetFactoryTest.test_fk_not_duplicated_in_form_fields