Monday, August 13, 2012

Custom view function to do temporary testing stuff - Django.


  • slot it in there.





class AdminOperatorViewCrud(operator_crud.OperatorViewCrud):
    def handle_request(self, request, *args, **kwargs):
        """ ubill temp """
        super(AdminOperatorViewCrud, self).handle_request(request, *args, **kwargs)

        print "---testing---"
        zero_product_check_ok = zero_product_check(crud_instance=self)
        return



    def get_edit_url(self):
        return view_util.url(operator_edit, operator_id=self.operator_id)







No comments:

Post a Comment