def get_realtime_urls(admin_view_func=lambda x: x):
from .widgets import REALTIME_WIDGETS<EOL>return [url(w.url_regex, admin_view_func(w.as_view()), name=w.url_name)<EOL>for w in REALTIME_WIDGETS]<EOL>
Get the URL for real-time widgets.

Args:
    admin_view_func (callable): an admin_view method from an AdminSite
        instance. By default: identity.

Returns:
    list: the list of the real-time URLs as django's ``url()``.