Saturday, December 28, 2019

Re: 'str' object has no attribute 'objects'

Thanks Suraj Thapa. 


Sent from Yahoo Mail for iPhone

On Saturday, December 28, 2019, 5:03 PM, Chetan Rokade <rokade.chetan12@gmail.com> wrote:

This is resolved now. I had used variable name same as class name. 

Regards,
Chetan

On Saturday, December 28, 2019 at 4:30:53 PM UTC+5:30, Chetan Rokade wrote:
Hi Friends,
Getting below error while doing search operation :
'str' object has no attribute 'objects'

Code:
1) html having search button :
<form method="POST" action=" SearchCR">
        {% csrf_token %}
        <div class="form- group">
            <div class="col- lg-5">
                <input type=" text" name="CR_NAME" class=" form-control" placeholder=" Enter Application">
            </div>
            <label class="col- lg-2">
                <button type=" submit" class="btn btn- primary"> Search </button>
            </label>
        </div>
    </form>


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/5a50d84e-5169-47cc-9d6d-70a702c812c8%40googlegroups.com
.

No comments:

Post a Comment