Skip to content
Snippets Groups Projects
Commit 7678df7d authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Add fields to CONSTANCE_ADDITIONAL_FIELDS

Add fields for:
	- Integers
	- Passwords
parent 1019b6fa
No related branches found
No related tags found
1 merge request!132Add fields to CONSTANCE_ADDITIONAL_FIELDS
Pipeline #697 failed
......@@ -304,6 +304,10 @@ CONSTANCE_ADDITIONAL_FIELDS = {
"image_field": ["django.forms.ImageField", {}],
"email_field": ["django.forms.EmailField", {}],
"url_field": ["django.forms.URLField", {}],
"integer_field": ["django.forms.IntegerField", {}],
"password_field": ["django.forms.CharField", {
'widget': 'django.forms.PasswordInput',
}],
"adressing-select": ['django.forms.fields.ChoiceField', {
'widget': 'django.forms.Select',
'choices': ((None, "-----"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment