Saturday, December 28, 2019

'str' object has no attribute 'objects'

Hi Friends,
Getting below error while doing search operation :
'str' object has no attribute 'objects'

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">
            <label class="col-lg-2">
                <button type="submit" class="btn btn-primary"> Search </button>

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
To view this discussion on the web visit

No comments:

Post a Comment