<filename>al_django/order/models.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models

# Create your models here.


class Order(models.Model):
    aluser = models.ForeignKey(
        'aluser.Aluser', on_delete=models.CASCADE, verbose_name='사용자')
    product = models.ForeignKey(
        'product.Product', on_delete=models.CASCADE, verbose_name="상품")
    register_date = models.DateTimeField(auto_now=True, verbose_name='등록날짜')
    quantity = models.IntegerField(verbose_name='수량')

    def __str__(self):
        return str(self.aluser) + ' ' + str(self.product)

    class Meta:
        db_table = 'albatross9_order'
        verbose_name = '주문'
        verbose_name_plural = '주문들'

<filename>al_django/order/models.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models

# Create your models here.


class Order(models.Model):
    aluser = models.ForeignKey(
        'aluser.Aluser', on_delete=models.CASCADE, verbose_name='사용자')
    product = models.ForeignKey(
        'product.Product', on_delete=models.CASCADE, verbose_name="상품")
    register_date = models.DateTimeField(auto_now=True, verbose_name='등록날짜')
    quantity = models.IntegerField(verbose_name='수량')

    def __str__(self):
        return str(self.aluser) + ' ' + str(self.product)

    class Meta:
        db_table = 'albatross9_order'
        verbose_name = '주문'
        verbose_name_plural = '주문들'

# -*- coding: utf-8 -*- # Create your models here.