Closed KarolS closed 10 years ago
from django.conf import settings from django.db import models from siteprefs.toolbox import patch_locals, register_prefs, pref, pref_group CUSTOMER_ID = getattr(settings, 'CUSTOMER_ID', 'admin') patch_locals() register_prefs( pref(CUSTOMER_ID, verbose_name="Customer ID", static=False, field=models.CharField(max_length=10)) )
Expected: according to http://django-siteprefs.readthedocs.org/en/latest/registration.html#options-accepted-by-prefs a nice, small text field to input customer's ID.
Actual: a huge textarea.
Thank you for the report.
Seems to be fixed. Feel free to reopen as needed.
Confirming that it works and doesn't break anything so far. Thanks.
Expected: according to http://django-siteprefs.readthedocs.org/en/latest/registration.html#options-accepted-by-prefs a nice, small text field to input customer's ID.
Actual: a huge textarea.