Very basic start to assets

no real work done yet, just a basic structure and a start to models
This commit is contained in:
Tom Price
2015-08-04 19:58:39 +01:00
parent e286d8bdee
commit 5cdc75ce5c
6 changed files with 22 additions and 0 deletions

0
assets/__init__.py Normal file
View File

3
assets/admin.py Normal file
View File

@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View File

13
assets/models.py Normal file
View File

@@ -0,0 +1,13 @@
from django.db import models
import reversion
# Create your models here.
class Suppliers(models.Model):
name = models.CharField(max_length=100)
address = models.TextField()
phone = models.CharField(max_length=13, null=True, blank=True)
company_number = models.IntegerField()
class AbstractAsset(object):
purchase_cost = models.DecimalField(max_digits=10, decimal_places=2)
purchase_date = models.DateField(blank=True, null=True)

3
assets/tests.py Normal file
View File

@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

3
assets/views.py Normal file
View File

@@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.