first attempt at porting massadv to django