Changes between Initial Version and Version 1 of Ticket #28879


Ignore:
Timestamp:
Dec 4, 2017, 8:17:05 AM (7 years ago)
Author:
Tim Graham
Comment:

I guess you're putting those lines in a ModelAdmin.formfield_overrides? I tried this and couldn't reproduce the problem. Please reopen if you can provide a sample project or a test case that demonstrates the problem.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28879

    • Property Resolutionneedsinfo
    • Property Status newclosed
  • Ticket #28879 – Description

    initial v1  
    11I'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.
    2 
     2{{{
    33    models.DecimalField: {'widget': TextInput(attrs={'size':'7'})},
    44    models.IntegerField: {'widget': NumberInput(attrs={'size':'3'})},
    5 
     5}}
    66breaking other aspects.  Sorry don't know if I need to add more detail etc...
    77               
Back to Top