Adding begginings of hrapplications

This commit is contained in:
Raynaldo Rivera
2014-10-24 21:08:34 -07:00
parent fd8801d006
commit 6e99823252
10 changed files with 44 additions and 8 deletions

View File

6
hrapplications/admin.py Normal file
View File

@@ -0,0 +1,6 @@
from django.contrib import admin
from models import HRApplications
from models import HRApplicationComment
admin.site.register(HRApplications)
admin.site.register(HRApplicationComment)

1
hrapplications/forms.py Normal file
View File

@@ -0,0 +1 @@
__author__ = 'r4stl1n'

21
hrapplications/models.py Normal file
View File

@@ -0,0 +1,21 @@
from django.db import models
from django.contrib.auth.models import User
class HRApplications(models.Model):
character_name = models.CharField(max_length=254, default="")
full_api_id = models.CharField(max_length=254, default="")
full_api_key = models.CharField(max_length=254, default="")
prefered_corp = models.CharField(max_length=254, default="")
is_a_spi = models.BooleanField(default=False)
about = models.TextField(default="")
extra = models.TextField(default="")
user = models.ForeignKey(User)
class HRApplicationComment(models.Model):
date = models.DateTimeField(auto_now=True)
comment = models.TextField(default="")
user = models.ForeignKey(User)

3
hrapplications/tests.py Normal file
View File

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

3
hrapplications/views.py Normal file
View File

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