I am having a spacing issue with Django 1.6 (Python 2.7.13 x86).
I have a version number in my program, and the spacing looks bad...
class SoftwareAdmin(admin.ModelAdmin):
fields = ('name', ('version1', 'version2', 'version3'))
form = SoftwareAdminForm
class SoftwareAdminForm(forms.ModelForm):
version1 = forms.CharField(max_length = 2, label = 'Version:', widget = forms.TextInput(attrs = {'size':2}))
version2 = forms.CharField(max_length = 2, label = '.', widget = forms.TextInput(attrs = {'size':2, 'title': '.'}))
version3 = forms.CharField(max_length = 2, label = '.', widget = forms.TextInput(attrs = {'size':2, 'title': '.'}))
version1.initial = '0'
version2.initial = '0'
version3.initial = '0'
So, what I want is these three char fields to look nicer, and to get rid of all the space in between; I want version1, version2, and version3 to all be flush and right next to each other. How can I do this? Thanks.
Here, the first picture is how my code was rendered in part of the Admin Panel as of now... The second picture is what I am trying to achieve (I created it via paint)...