My Journey model contains two fields, distance and time: I am trying to create a Modelform where the time field will be split to display inputs for ...
My Journey model contains two fields, distance and time: I am trying to create a Modelform where the time field will be split to display inputs for ...
I'm struggling with some Django, where I want to make a custom MultiValueField combined with MultiWidget. I've read misc. tutorials, but it seem I'm m ...
I have been subclassing multiwidget to create an HTML5 range slider synchronised with a NumberInput field using this code: When I instanciate it an ...
In Django how to can get ids of sub-widgets that added to custom MultiWidget, for example if I want to attach a JavaScript code to rendered widgets ho ...
I've the following models: As you can see, the data I'm storing in intermediary model is readonly. It's generated automatically by the system when ...
I've implemented a custom DurationField in Django that stores an integer that represents a duration in number of seconds. I've also defined a custom m ...
i have been really pulling my hair out to get this done. I have 2 integer fields in one of my models as follows: As the above two values are inter- ...
This is related to an earlier question of mine. I want to have a MultiValueField which contains a Choice and TextInput widget. If the user selects "O ...
All, I have a form with a MultiValueField that almost works. It uses a choicefield and charfield (with a corresponding Select and TextInput for the w ...
All, I have managed to get MultiValueField and MultiValueWidget working. But, apart from "choices", I cannot seem to add attributes (like "label" or ...
I can't seem to figure out how to handle the following situation properly in Django: I have a date range in a model, which I store as two separate fi ...
I want to have a field and a widget that lets have an "approximated" date, the idea is have one and only one of the following : Exact date A yea ...
I'm trying to understand how to create forms by subclassing MultiWidgets and MultiValueFields. I have a simple Address model and associated forms: ...
I've set up a MultiValueField that's used in an inline. If I leave the MultiValueField blank, it appears to think that it's stilled filled in. As a re ...
Newbie to all this! i'm working on displaying phone field displayed as (xxx)xxx-xxxx on front end.below is my code. My question is 1. all fields are m ...
So my django book is back at university and I'm struggling to work this one out. I've subclassed django.forms.widgets.MultiWidget like so: Which g ...
I am trying to implement a MultiValueField for IP Adress/Domain Name entries. It works as expected for entering data. My Problem is that if I want to ...
The documentation is a bit lacking with respect to this feature. I can see I need to create a "widgets" property with a list of other widgets, but ...