def get_add_item_url(self):
    if callable(self.add_item_link):
        return self.add_item_link()
    try:
        if self.add_item_link_args:
            return urlresolvers.reverse(self.add_item_link, args=self.add_item_link_args)
        else:
            return urlresolvers.reverse(self.add_item_link)
    except urlresolvers.NoReverseMatch:
        return self.add_item_link
def get_add_item_url(self):
    if callable(self.add_item_link):
        return self.add_item_link()
    try:
        if self.add_item_link_args:
            return urlresolvers.reverse(self.add_item_link, args=self.add_item_link_args)
        else:
            return urlresolvers.reverse(self.add_item_link)
    except urlresolvers.NoReverseMatch:
        return self.add_item_link