set 7 and 9 generation in views py