Opened 7 years ago
Last modified 7 years ago
#28879 closed Uncategorized
Widget NumberInput becomes text if you change size — at Initial Version
Reported by: | Chris Davies-Barnard | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | 1.11 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I'm adjusting the width of some form fields because small integers such as qty and price don't need to be 20 long and the following code results in them becoming type = 'text' regardless.
models.DecimalField: {'widget': TextInput(attrs={'size':'7'})},
models.IntegerField: {'widget': NumberInput(attrs={'size':'3'})},
breaking other aspects. Sorry don't know if I need to add more detail etc...
Note:
See TracTickets
for help on using tickets.