mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-10 17:16:22 +01:00
Adding begginings of hrapplications
This commit is contained in:
0
hrapplications/__init__.py
Normal file
0
hrapplications/__init__.py
Normal file
6
hrapplications/admin.py
Normal file
6
hrapplications/admin.py
Normal 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
1
hrapplications/forms.py
Normal file
@@ -0,0 +1 @@
|
||||
__author__ = 'r4stl1n'
|
||||
21
hrapplications/models.py
Normal file
21
hrapplications/models.py
Normal 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
3
hrapplications/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
3
hrapplications/views.py
Normal file
3
hrapplications/views.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
Reference in New Issue
Block a user