Without seeing your model or your data, it's hard to tell what's going
on.
You're overriding the queryset for those two fields. If the instance's
values for those two fields is not in that updated queryset, then your
widgets won't get a default value.
In other words, if the value of "b_name" for
Hi,
When i edit a records none of the modelchoicefields are getting selected
using form edit form instance.
I have gone though below blog, but confusing
http://blog.brendel.com/2009/07/setting-initial-value-for-djangos.html
*view.py* :
def EditTable(request, get_id):
detail_data = shortc
2 matches
Mail list logo