I am using django.contrib.auth.views.login to login. When the login is not completed, the user and password fields are returned to the form.
What is the correct way to clean them?
Pass render_value = False when creating the PasswordInput password field.
class YourAuthenticationForm(AuthenticationForm): password = forms.CharField(widget=forms.PasswordInput(render_value=False))
Source: https://habr.com/ru/post/1737914/More articles:SWT: scrollable area inside a tab - javaПрофилирование пропускной способности Flex Builder - flexShare a link - perform an action in the background - javaHow to rewrite html element from javascript? - javascriptRegex to check that a character in a range is not repeated - stringHow to encapsulate helper functions (commonly used by apis) in OOP language like java? - javaMembership.GetUser () in TransactionScope throws TransactionPromotionException - c #Соглашения об именах Entity Framework для таблиц ссылок "многие-ко-многим" - sql-servernhibernate transaction and transactions abort spontaneously - nhibernateHow can I sort timestamps in Perl? - comparisonAll Articles