Merge remote-tracking branch 'origin/master'

This commit is contained in:
Oliver 2018-04-17 23:42:30 +10:00
commit 8b1dbd4500
2 changed files with 6 additions and 4 deletions

View File

@ -9,11 +9,11 @@ class CustomerAdmin(ImportExportModelAdmin):
class CustomerOrderAdmin(admin.ModelAdmin):
pass
list_display = ('internal_ref',)
class CustomerOrderLineAdmin(admin.ModelAdmin):
pass
list_display = ('customer_order', 'line_number')
admin.site.register(Customer, CustomerAdmin)

View File

@ -30,8 +30,7 @@ class CustomerOrder(models.Model):
# TODO: Should the customer and customer_ref together be unique?
# Date the order was entered into system
created_date = models.DateField(auto_now_add=True, blank=True, help_text="Date order entered "
"in system")
created_date = models.DateField(auto_now_add=True, blank=True, help_text="Date order entered in system")
# Date the order was issued on the paperwork, if provided
issued_date = models.DateField(blank=True, help_text="Date order issued by customer")
@ -39,6 +38,9 @@ class CustomerOrder(models.Model):
# Order notes
notes = models.TextField(blank=True, default="", help_text="Order notes")
def __str__(self):
return "OrderRef {internal_ref}".format(internal_ref=self.internal_ref)
class CustomerOrderLine(models.Model):
"""