def get_kwargs(view_name):
    resolver = urlresolvers.get_resolver()
patterns = resolver.reverse_dict.getlist(view_name)
kwargs = []
for possibility, pattern, defaults in patterns:
    for result, params in possibility:
        pass
Django - получить имена параметров, необходимых для изменения URL-адреса