Please boycott this film
As someone who has grown up with life-threatening food allergies, and who has been personally bullied multiple times from kids who have used allergens as weapons, this film should be pulled immediately for depicting deliberate attacks like this as comedy.
First of all, food allergies are NEVER funny and should never be personified as a parody or otherwise treated lightly. If someone had cerebral palsy, cancer, or cystic fibrosis, no one would ever suggest to make this the basis for comic relief. Why should food allergies, which can bring death in minutes, be treated any different?
Second of all, showing the character use his EpiPen and go about his merry way is entirely misleading--many children and adults alike (including myself) have nearly died after using five EpiPens and spending 6 hours in the ER with solumedrol IV. I nearly went into organ failure on one such occasion, as the reaction continued to rebound.
Children who see this scene, who do not understand how serious this is in real life, will be inspired to use food allergens to bully others or to pull pranks. It has happened enough without this movie portraying it humorously. (See Will Ferrell's prank years ago where he thought it'd be funny to see his friend react to peanut; and more recently the three teens in Pennsylvania who deliberately soaked their hand in pineapple juice to make a student react who they knew was deathly allergic).
If I had children of my own, I would never take them to see this film because of what the filmmakers have done. (And I would be in a far better position than most parents to explain why that scene is so wrong, as many parents (who whose children don't have severe allergies) may not have the knowledge required to talk to their children about what that scene really means and why it is misleading.