Uživatel pohledy
Definice pohledů.
- class uzivatel.views.OsobaAutocomplete(**kwargs)
Třída pohledu pro získaní osob pro autocomplete.
- get_queryset()
Filter the queryset with GET[‚q‘].
- class uzivatel.views.UzivatelAutocomplete(**kwargs)
Třída pohledu pro získaní uživatelů pro autocomplete.
- get_result_label(result)
Return the label of a result.
- get_queryset()
Filter the queryset with GET[‚q‘].
- class uzivatel.views.UzivatelAutocompletePublic(**kwargs)
- get_result_label(result)
Return the label of a result.
- get_queryset()
Filter the queryset with GET[‚q‘].
- uzivatel.views.create_osoba(request)
Funkce pohledu pro vytvoření osoby.
- class uzivatel.views.UserRegistrationView(**kwargs)
Třída pohledu pro registraci uživatele.
- form_class
alias of
AuthUserCreationFormWithRecaptcha
- send_activation_email(user)
Send the activation email. The activation key is the username, signed using TimestampSigner.
- dispatch(*args, **kwargs)
Check that user signup is allowed before even bothering to dispatch or do other processing.
- class uzivatel.views.UserLoginView(**kwargs)
Třída pohledu pro prihlášení uživatele.
- authentication_form
alias of
AuthUserLoginForm
- class uzivatel.views.UserLogoutView(**kwargs)
Třída pohledu pro odhlášení uživatele, kvůli zobrazení info o logoutu
- post(request, *args, **kwargs)
Logout may be done via POST.
- class uzivatel.views.UserAccountUpdateView(**kwargs)
Třída pohledu pro editaci uživatele.
- form_class
alias of
AuthUserChangeForm
- get_object(queryset=None)
Return the object the view is displaying.
Require self.queryset and a pk or slug argument in the URLconf. Subclasses can override this to return any object.
- get_context_data(**kwargs)
Insert the form into the context dict.
- post(request, *args, **kwargs)
Handle POST requests: instantiate a form instance with the passed POST variables and then check if it’s valid.
- uzivatel.views.update_notifications(request)
Funkce pohledu pro editaci notifikací.
- class uzivatel.views.UserActivationView(**kwargs)
Třída pohledu pro aktivaci uživatele.
- activate(*args, **kwargs)
Implement account-activation logic here.
- class uzivatel.views.UserPasswordResetView(**kwargs)
Třída pohledu pro resetování hesla.
- form_class
alias of
UserPasswordResetForm
- class uzivatel.views.TokenAuthenticationBearer
Override třídy pro nastavení názvu tokenu na Bearer.
- class uzivatel.views.MyXMLRenderer
Override třídy pro nastavení správnych tagů.
- class uzivatel.views.GetUserInfo(**kwargs)
Třída podlehu pro získaní základních info o uživately.
- handle_exception(exc)
Handle any exception that occurs, by returning an appropriate response, or re-raising the error.
- perform_content_negotiation(request, force=False)
Determine which renderer and media type to use render the response.
- finalize_response(request, response, *args, **kwargs)
Returns the final response object.
- class uzivatel.views.ObtainAuthTokenWithUpdate(**kwargs)