Dynamic method to fill in tables based on Django models