title: AttributeError at /mobile/7/delete/ 'tuple' object has no attribute '_meta'
body: <p>I am trying to delete an item from my project but it gives error. interestingly it is deleting the item but gives error mention above.</p>
  <p>views.py:</p>
  <pre><code>def delete_mobile(request, mobile_id):
      mobile1 = get_object_or_404(Mobile, pk=mobile_id).delete()
      form = MobileForm(instance=mobile1)
      if form.is_valid():
          form.delete()
          return redirect('mobile')
      return render(request, 'device/delete_mobile.html', {'mobile': mobile1})
  </code></pre>
  <p>delete_mobile.html:</p>
  <pre><code>{% extends 'device/base.html' %}
  {% load crispy_forms_tags %}
  {% block content %}
  &lt;div class=&quot;container&quot;&gt;
     &lt;form action=&quot;{% url 'delete_mobile' mobile.instance.id %}&quot; method=&quot;POST&quot;&gt;
      {% csrf_token %}
          &lt;h3&gt;Delete {{ header }}:&lt;/h3&gt;
      {{ mobile|crispy }}
          &lt;button class=&quot;btn btn-success&quot; type=&quot;submit&quot;&gt;Delete&lt;/button&gt;
     &lt;/form&gt;
  </code></pre>
     
  <p>{% endblock %}</p>
  <p>urls.py:</p>
  <pre><code> path('mobile/&lt;str:mobile_id&gt;/delete/', views.delete_mobile, name='delete_mobile'),
  </code></pre>