Skip to main content

builtin_recent_users_widget

Function builtin_recent_users_widget 

Source
pub fn builtin_recent_users_widget() -> Widget
Expand description

Recent signups feed — last 5 auth_user rows ordered by date_joined. Gracefully degrades to an empty list if the table is absent (e.g. an admin-only install where AuthPlugin isn’t registered), so this widget never breaks the dashboard.

Goes through DynQuerySet keyed off the auth_user ModelMeta — that way the widget works against any custom user model AuthPlugin::<U> registers, not just the built-in AuthUser. If the registry doesn’t know about an auth_user table (the degraded-install case), the widget returns an empty feed.