César Bustíos

Lima, Peru

Age: 30

Python (Django) developer

Jul
30
comment Prevent Django forms highlighting correct fields
How are you rendering the form in your template? Please, provide some code
Jul
30
comment json fail in django ('tuple' object has no attribute '_meta')
Please, provide the full traceback. What version of Django are you using?
Jul
30
revised json fail in django ('tuple' object has no attribute '_meta')
added 82 characters in body
Jul
29
awarded Notable Question
Jul
17
comment Extending Django User Model and Accessing it
There is no need for the icontains lookup, just use Client.objects.filter(user=current_user) and ClientUpload.objects.filter(client=current_client)
Jul
17
reviewed Approve suggested edit on Django: How to iterate over two lists inside template
Jul
17
revised Django: How to iterate over two lists inside template
deleted 65 characters in body
Jul
17
revised List_display for ManytoMany fields in Admin panel
added 86 characters in body
Jul
17
answered List_display for ManytoMany fields in Admin panel
Jul
17
comment List_display for ManytoMany fields in Admin panel
Try changing obj.visitor.all() for obj.visitor_set.all()
Jul
14
comment Django CSV file -database upload error
Can you give an example of the CSV file you are using?
Jul
14
comment How to define initial values for ModelForm rightly?
Can you please update your question with this info?
Jul
14
comment How to define initial values for ModelForm rightly?
You need to validate if the ID of the user in your form is the same as the request.user. Check Cleaning a specific field attribute
Jul
14
answered How to load an instance in Django ModelForms
Jul
14
comment How to define initial values for ModelForm rightly?
You are welcome!
Jul
14
comment How to define initial values for ModelForm rightly?
If you don't render them the form will only submit the input from the text field, and that will end as an invalid form since you are defining fields = ['text','author','news'] in the Meta class of your form.
Jul
14
answered How to define initial values for ModelForm rightly?
Jul
14
comment How to define initial values for ModelForm rightly?
You can show them in your template if you have a HiddenInput
Jul
14
comment How to define initial values for ModelForm rightly?
How are you hiding them?
Jul
14
revised How to define initial values for ModelForm rightly?
added 42 characters in body
1 2 3 4 5