title: No ID assigned to objects when created in Django
body: <p>I have a Class in my models.py named Order</p>
  
  <pre><code>class Order(models.Model):
      customer_name = models.ForeignKey(
          settings.AUTH_USER_MODEL,
          on_delete=models.CASCADE,
          related_name='customer_name',
      )
      order_individual_price = models.IntegerField(default=1)
      order_name = models.CharField(max_length=200)
      order_quantity = models.IntegerField(default=1)
      order_total_price = models.IntegerField(default=1)
  
      def __str__(self):
          return self.order_name
  </code></pre>
  
  <p>In my views.py I create a new instance of order when a button is pressed</p>
  
  <pre><code>def ordering(request):
      latest_order = Order.objects.all()
      menu = Menu.objects.all()
      if request.method == 'POST':
          if request.user.is_authenticated:
              menu_instance = request.POST.get('add')
              if menu_instance:
                  get_order = Menu.objects.get(id=menu_instance)
                  get_price = get_order.Menu_price
                  new_order = Order.objects.create(customer_name=request.user, 
                  order_name=get_order, order_individual_price=get_price)
  
                  return redirect('shop-ordering')
              order_instance = request.POST.get('delete')
  
          else:
             messages.info(request, f'Please Sign In First')
             return redirect('login')
  
      return render(request, 'shop/ordering.html', {'title':'Ordering', 'latest_order': 
      latest_order, 'menu':menu})
  </code></pre>
  
  <p>Trying to access the ID through the shell by this command</p>
  
  <pre><code>&gt;&gt;&gt; from shop.models import Menu, Order
  &gt;&gt;&gt; Order.objects.get(id=1)
  </code></pre>
  
  <p>But Instead, I get this error</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;console&gt;", line 1, in &lt;module&gt;
    File "/Users/alan/Desktop/FRIENDS_CAFE_DJANGO/venv/lib/python3.8/site-packages/django/db/models/manager.py", line 82, in manager_method
      return getattr(self.get_queryset(), name)(*args, **kwargs)
    File "/Users/alan/Desktop/FRIENDS_CAFE_DJANGO/venv/lib/python3.8/site-packages/django/db/models/query.py", line 415, in get
      raise self.model.DoesNotExist(
  shop.models.Order.DoesNotExist: Order matching query does not exist.
  </code></pre>
  
  <p>However, when I run <code>Order.objects.all()</code> it gives me back the objects</p>
  
  <pre><code>&gt;&gt;&gt; Order.objects.all()
  &lt;QuerySet [&lt;Order: test1&gt;, &lt;Order: test2&gt;]&gt;
  </code></pre>
  
  <p>I didn't touch any of the <strong>init</strong> files and since django creates the ID automatically, I'm really confused on why its not assigning each order a ID.</p>