Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ulakbus
ulakbus
Commits
f2c84d61
Commit
f2c84d61
authored
Jan 13, 2016
by
yetercatikkas
Committed by
Ali Riza Keles
Jan 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ADD,closes GH-127.Review Ulakbus Models
parent
a14de5d2
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
2563 additions
and
116 deletions
+2563
-116
test_base_case.py
selenium_tests/test_base_case.py
+46
-0
test_crud_unvanlar.py
tests/test_crud_unvanlar.py
+68
-0
dump.csv
ulakbus/fixtures/dump.csv
+2327
-0
auth.py
ulakbus/models/auth.py
+29
-29
buildings_rooms.py
ulakbus/models/buildings_rooms.py
+16
-16
hitap.py
ulakbus/models/hitap.py
+13
-11
ogrenci.py
ulakbus/models/ogrenci.py
+36
-32
personel.py
ulakbus/models/personel.py
+28
-28
No files found.
selenium_tests/test_base_case.py
0 → 100644
View file @
f2c84d61
# -*- coding: utf-8 -*-
try
:
from
selenium
import
webdriver
from
selenium.webdriver.support.ui
import
WebDriverWait
from
selenium.webdriver.support
import
expected_conditions
as
EC
from
selenium.webdriver.common.by
import
By
except
:
print
(
"Selenium cannot be imported"
)
class
BaseTestCase
(
object
):
driver
=
None
@
classmethod
def
make_driver
(
cls
):
cls
.
driver
=
webdriver
.
Firefox
()
cls
.
driver
.
get
(
'http://nightly.ulakbus.net/#/dashboard'
)
cls
.
driver
.
implicitly_wait
(
10
)
def
do_login
(
self
):
self
.
make_driver
()
email_field
=
self
.
driver
.
find_element_by_id
(
"username"
)
# Kullanici adi alanina 'test_user' yolluyor.
email_field
.
send_keys
(
"test_user"
)
password_field
=
self
.
driver
.
find_element_by_id
(
"password"
)
# Sifre alanina '123' yolluyor.
password_field
.
send_keys
(
"123"
)
# Giris tusuna tikliyor.
self
.
driver
.
find_element_by_css_selector
(
'.btn'
)
.
click
()
# Panel tusunu gorene kadar test_user login olmasini 25 saniye bekliyor.
WebDriverWait
(
self
.
driver
,
25
)
.
until
(
EC
.
element_to_be_clickable
((
By
.
CSS_SELECTOR
,
'#side-menu > li:nth-child(1) > a:nth-child(1)'
)))
def
do_settings
(
self
):
# Kullaniciya giris yaptiriyor.
self
.
do_login
()
self
.
driver
.
find_element_by_css_selector
(
'li.dropdown:nth-child(4) > a:nth-child(1)'
)
.
click
()
# Ayarlar(dev)'e tikliyor.
self
.
driver
.
find_element_by_css_selector
(
'.dropdown-menu > li:nth-child(4) > a:nth-child(1)'
)
.
click
()
# Backend Url'ye deger gonderiyor.
self
.
driver
.
find_element_by_css_selector
(
'.form-control'
)
.
send_keys
(
'https://test.ulakbus.net/'
)
# Kaydet'e tikliyor
self
.
driver
.
find_element_by_css_selector
(
'button.btn:nth-child(2)'
)
.
click
()
BaseTestCase
.
make_driver
()
tests/test_crud_unvanlar.py
0 → 100644
View file @
f2c84d61
# -*- coding: utf-8 -*-
"""
"""
# Copyright (C) 2015 ZetaOps Inc.
#
# This file is licensed under the GNU General Public License v3
# (GPLv3). See LICENSE.txt for details.
import
time
from
.base_test_case
import
BaseTestCase
class
TestCase
(
BaseTestCase
):
def
test_list_add_delete_with_hizmet_unvan_model
(
self
):
# setup workflow
def
len_1
(
lst
):
return
len
(
lst
)
-
1
self
.
prepare_client
(
'/crud'
)
# calling with just model name (without any cmd) equals to cmd="list"
resp
=
self
.
client
.
post
(
model
=
'HizmetUnvan'
)
assert
'objects'
in
resp
.
json
print
'+++++++++++++++++++++++++++++++++++++'
print
len
(
resp
.
json
[
'objects'
])
# count number of records
num_of_objects
=
len_1
(
resp
.
json
[
'objects'
])
# delete the first object then go to list view
resp
=
self
.
client
.
post
(
model
=
'HizmetUnvan'
,
cmd
=
'delete'
,
object_id
=
resp
.
json
[
'objects'
][
1
][
'key'
])
resp
=
self
.
client
.
post
(
model
=
'HizmetUnvan'
)
print
'__________________________________________________________'
print
len
(
resp
.
json
[
'objects'
])
# Silinen objectin ardindan object sayisini olcmek icin once
# resp = self.client.post(model='HizmetUnvan')
# print len(resp.json['objects'])
# Unvan formuna yeni bir deger ekliyoruz.
# refresh the model to new records
# resp = self.client.post(model='HizmetUnvan')
# assert num_of_objects - 1 == len_1(resp.json['objects'])
# add a new record
resp
=
self
.
client
.
post
(
model
=
'HizmetUnvan'
,
cmd
=
'add_edit_form'
,
form
=
dict
(
add
=
1
))
# save the record and list the records
resp
=
self
.
client
.
post
(
model
=
'HizmetUnvan'
,
cmd
=
'save::list'
,
form
=
dict
(
tckn
=
"12323121443"
))
# assert num_of_objects == len_1(resp.json['objects'])
print
len
(
resp
.
json
[
'objects'
])
"""
# duzenle ve sil islemleri icin object_id degerine ihtiyacimiz var.
resp = self.client.post(model='HizmetUnvan',
cmd='add_edit_form',
object_id=resp.json['objects'][1]['key'])
form_data = resp.json['forms']['model']
form_token = self.client.token
self.client.token = ''
resp = self.client.post(model='Personel',
cmd='select_list',
query='e')
personel_key, personel_ad = resp.json['objects'][0]['key'], resp.json['objects'][0]['value']
self.client.token = form_token
form_data['personel_id'] = personel_key
form_data['kurum_onay_tarihi'] = '12.09.2011'
form_data['unvan_bitis_tarihi'] = '11.03.2010'
form_data['unvan_tarihi'] = '09.04.2909'
self.client.post(model='HizmetUnvan', cmd='save::list', form=form_data)"""
ulakbus/fixtures/dump.csv
0 → 100644
View file @
f2c84d61
This diff is collapsed.
Click to expand it.
ulakbus/models/auth.py
View file @
f2c84d61
...
@@ -26,12 +26,12 @@ except ImportError:
...
@@ -26,12 +26,12 @@ except ImportError:
class
User
(
Model
):
class
User
(
Model
):
username
=
field
.
String
(
"
Username
"
,
index
=
True
)
username
=
field
.
String
(
"
Kullanıcı Adı
"
,
index
=
True
)
password
=
field
.
String
(
"
Password
"
)
password
=
field
.
String
(
"
Şifre
"
)
avatar
=
field
.
File
(
"Profil
e Photo
"
,
random_name
=
True
)
avatar
=
field
.
File
(
"Profil
Resmi
"
,
random_name
=
True
)
name
=
field
.
String
(
"
First Name
"
,
index
=
True
)
name
=
field
.
String
(
"
Ad
"
,
index
=
True
)
surname
=
field
.
String
(
"S
urname
"
,
index
=
True
)
surname
=
field
.
String
(
"S
oyad
"
,
index
=
True
)
superuser
=
field
.
Boolean
(
"S
uper user
"
,
default
=
False
)
superuser
=
field
.
Boolean
(
"S
üper Kullanıcı
"
,
default
=
False
)
class
Meta
:
class
Meta
:
app
=
'Sistem'
app
=
'Sistem'
...
@@ -77,7 +77,7 @@ class Permission(Model):
...
@@ -77,7 +77,7 @@ class Permission(Model):
class
AbstractRole
(
Model
):
class
AbstractRole
(
Model
):
id
=
field
.
Integer
(
"ID No"
,
index
=
True
)
id
=
field
.
Integer
(
"ID No"
,
index
=
True
)
name
=
field
.
String
(
"
Name
"
,
index
=
True
)
name
=
field
.
String
(
"
İsim
"
,
index
=
True
)
class
Meta
:
class
Meta
:
app
=
'Sistem'
app
=
'Sistem'
...
@@ -112,25 +112,25 @@ class AbstractRole(Model):
...
@@ -112,25 +112,25 @@ class AbstractRole(Model):
class
Unit
(
Model
):
class
Unit
(
Model
):
name
=
field
.
String
(
"
Name
"
,
index
=
True
)
name
=
field
.
String
(
"
İsim
"
,
index
=
True
)
long_name
=
field
.
String
(
"
Name
"
,
index
=
True
)
long_name
=
field
.
String
(
"
İsim
"
,
index
=
True
)
yoksis_no
=
field
.
Integer
(
"Yoksis ID"
,
index
=
True
)
yoksis_no
=
field
.
Integer
(
"Yoksis ID"
,
index
=
True
)
unit_type
=
field
.
String
(
"
Unit Type
"
,
index
=
True
)
unit_type
=
field
.
String
(
"
Birim Tipi
"
,
index
=
True
)
parent_unit_no
=
field
.
Integer
(
"
Parent Unit
ID"
,
index
=
True
)
parent_unit_no
=
field
.
Integer
(
"
Üst Birim
ID"
,
index
=
True
)
current_situation
=
field
.
String
(
"
Current Situation
"
,
index
=
True
)
current_situation
=
field
.
String
(
"
Guncel Durum
"
,
index
=
True
)
language
=
field
.
String
(
"
Learning Language
"
,
index
=
True
)
language
=
field
.
String
(
"
Öğrenim Dili
"
,
index
=
True
)
learning_type
=
field
.
String
(
"
Learning Type
"
,
index
=
True
)
learning_type
=
field
.
String
(
"
Öğrenme Tipi
"
,
index
=
True
)
osym_code
=
field
.
String
(
"ÖSYM
Code
"
,
index
=
True
)
osym_code
=
field
.
String
(
"ÖSYM
Kodu
"
,
index
=
True
)
opening_date
=
field
.
Date
(
"
Opening Date
"
,
index
=
True
)
opening_date
=
field
.
Date
(
"
Açılış Tarihi
"
,
index
=
True
)
learning_duration
=
field
.
Integer
(
"
Learning Duration
"
,
index
=
True
)
learning_duration
=
field
.
Integer
(
"
Öğrenme Süresi
"
,
index
=
True
)
english_name
=
field
.
String
(
"
Unit Name in English
"
,
index
=
True
)
english_name
=
field
.
String
(
"
İngilizce Birim Adı.
"
,
index
=
True
)
quota
=
field
.
Integer
(
"
Unit Quota
"
,
index
=
True
)
quota
=
field
.
Integer
(
"
Birim Kontenjan
"
,
index
=
True
)
city_code
=
field
.
Integer
(
"
City Code
"
,
index
=
True
)
city_code
=
field
.
Integer
(
"
Şehir Kodu
"
,
index
=
True
)
district_code
=
field
.
Integer
(
"
District Code
"
,
index
=
True
)
district_code
=
field
.
Integer
(
"
Semt Kodu
"
,
index
=
True
)
unit_group
=
field
.
Integer
(
"
Unit Gro
up"
,
index
=
True
)
unit_group
=
field
.
Integer
(
"
Birim Gr
up"
,
index
=
True
)
foet_code
=
field
.
Integer
(
"FOET
Code
"
,
index
=
True
)
# yoksis KILAVUZ_KODU mu?
foet_code
=
field
.
Integer
(
"FOET
Kodu
"
,
index
=
True
)
# yoksis KILAVUZ_KODU mu?
is_academic
=
field
.
Boolean
(
"
Is Academic
"
)
is_academic
=
field
.
Boolean
(
"
Akademik
"
)
is_active
=
field
.
Boolean
(
"
Is Active
"
)
is_active
=
field
.
Boolean
(
"
Aktif
"
)
uid
=
field
.
Integer
(
index
=
True
)
uid
=
field
.
Integer
(
index
=
True
)
parent
=
LinkProxy
(
'Unit'
,
verbose_name
=
'Üst Birim'
,
reverse_name
=
'alt_birimler'
)
parent
=
LinkProxy
(
'Unit'
,
verbose_name
=
'Üst Birim'
,
reverse_name
=
'alt_birimler'
)
...
@@ -163,7 +163,7 @@ class Role(Model):
...
@@ -163,7 +163,7 @@ class Role(Model):
abstract_role
=
AbstractRole
()
abstract_role
=
AbstractRole
()
user
=
User
()
user
=
User
()
unit
=
Unit
()
unit
=
Unit
()
typ
=
field
.
Integer
(
"Rol
t
ipi"
,
choices
=
ROL_TIPI
)
typ
=
field
.
Integer
(
"Rol
T
ipi"
,
choices
=
ROL_TIPI
)
name
=
field
.
String
(
"Rol Adı"
,
hidden
=
True
)
name
=
field
.
String
(
"Rol Adı"
,
hidden
=
True
)
class
Meta
:
class
Meta
:
...
@@ -233,9 +233,9 @@ class Role(Model):
...
@@ -233,9 +233,9 @@ class Role(Model):
class
LimitedPermissions
(
Model
):
class
LimitedPermissions
(
Model
):
restrictive
=
field
.
Boolean
(
default
=
False
)
restrictive
=
field
.
Boolean
(
"Sınırlandırıcı"
,
default
=
False
)
time_start
=
field
.
String
(
"
Start Time
"
,
index
=
True
)
time_start
=
field
.
String
(
"
Başlama Tarihi
"
,
index
=
True
)
time_end
=
field
.
String
(
"
End Time
"
,
index
=
True
)
time_end
=
field
.
String
(
"
Bitiş Tarihi
"
,
index
=
True
)
class
Meta
:
class
Meta
:
app
=
'Sistem'
app
=
'Sistem'
...
...
ulakbus/models/buildings_rooms.py
View file @
f2c84d61
...
@@ -13,10 +13,10 @@ __author__ = 'Ali Riza Keles'
...
@@ -13,10 +13,10 @@ __author__ = 'Ali Riza Keles'
class
Campus
(
Model
):
class
Campus
(
Model
):
code
=
field
.
String
(
"
Code
"
,
index
=
True
)
code
=
field
.
String
(
"
Kod
"
,
index
=
True
)
name
=
field
.
String
(
"
Name
"
,
index
=
True
)
name
=
field
.
String
(
"
İsim
"
,
index
=
True
)
coordinate_x
=
field
.
String
(
"
Coordinate X
"
,
index
=
True
)
coordinate_x
=
field
.
String
(
"
X Koordinatı
"
,
index
=
True
)
coordinate_y
=
field
.
String
(
"
Coordinate Y
"
,
index
=
True
)
coordinate_y
=
field
.
String
(
"
Y Koordinatı
"
,
index
=
True
)
class
Meta
:
class
Meta
:
verbose_name
=
"Yerleşke"
verbose_name
=
"Yerleşke"
...
@@ -32,10 +32,10 @@ class Campus(Model):
...
@@ -32,10 +32,10 @@ class Campus(Model):
class
Building
(
Model
):
class
Building
(
Model
):
code
=
field
.
String
(
"
Code
"
,
index
=
True
)
code
=
field
.
String
(
"
Kod
"
,
index
=
True
)
name
=
field
.
String
(
"
Name
"
,
index
=
True
)
name
=
field
.
String
(
"
İsim
"
,
index
=
True
)
coordinate_x
=
field
.
String
(
"
Coordinate X
"
,
index
=
True
)
coordinate_x
=
field
.
String
(
"
X Koordinatı
"
,
index
=
True
)
coordinate_y
=
field
.
String
(
"
Coordinate Y
"
,
index
=
True
)
coordinate_y
=
field
.
String
(
"
Y Koordinatı
"
,
index
=
True
)
campus
=
Campus
()
campus
=
Campus
()
class
Meta
:
class
Meta
:
...
@@ -57,21 +57,21 @@ class Building(Model):
...
@@ -57,21 +57,21 @@ class Building(Model):
class
RoomType
(
Model
):
class
RoomType
(
Model
):
type
=
field
.
String
(
"
Room Type
"
,
index
=
True
)
type
=
field
.
String
(
"
Oda Tipi
"
,
index
=
True
)
notes
=
field
.
Text
(
"Not
es
"
,
index
=
True
)
notes
=
field
.
Text
(
"Not
lar
"
,
index
=
True
)
def
__unicode__
(
self
):
def
__unicode__
(
self
):
return
'
%
s'
%
(
self
.
type
)
return
'
%
s'
%
(
self
.
type
)
class
Room
(
Model
):
class
Room
(
Model
):
code
=
field
.
String
(
"
Code
"
,
index
=
True
)
code
=
field
.
String
(
"
Kod
"
,
index
=
True
)
name
=
field
.
String
(
"
Name
"
,
index
=
True
)
name
=
field
.
String
(
"
İsim
"
,
index
=
True
)
room_type
=
RoomType
(
"
Room Type
"
,
index
=
True
)
room_type
=
RoomType
(
"
Oda Tipi
"
,
index
=
True
)
floor
=
field
.
String
(
"
Floor
"
,
index
=
True
)
floor
=
field
.
String
(
"
Kat
"
,
index
=
True
)
capacity
=
field
.
Integer
(
"
Capacity
"
,
index
=
True
)
capacity
=
field
.
Integer
(
"
Kapasite
"
,
index
=
True
)
building
=
Building
()
building
=
Building
()
is_active
=
field
.
Boolean
(
"A
ctive
"
,
index
=
True
)
is_active
=
field
.
Boolean
(
"A
ktif
"
,
index
=
True
)
class
Meta
:
class
Meta
:
verbose_name
=
"Oda"
verbose_name
=
"Oda"
...
...
ulakbus/models/hitap.py
View file @
f2c84d61
...
@@ -12,19 +12,19 @@ from .auth import Role
...
@@ -12,19 +12,19 @@ from .auth import Role
class
NufusKayitlari
(
Model
):
class
NufusKayitlari
(
Model
):
tckn
=
field
.
String
(
"Sigortalının TC Kimlik No"
,
index
=
True
)
tckn
=
field
.
String
(
"Sigortalının TC Kimlik No"
,
index
=
True
)
ad
=
field
.
String
(
"Ad
i
"
,
index
=
True
)
ad
=
field
.
String
(
"Ad
ı
"
,
index
=
True
)
soyad
=
field
.
String
(
"Soyad
i
"
,
index
=
True
)
soyad
=
field
.
String
(
"Soyad
ı
"
,
index
=
True
)
ilk_soy_ad
=
field
.
String
(
"Memuriyete Girişteki İlk Soyadı"
,
index
=
True
)
ilk_soy_ad
=
field
.
String
(
"Memuriyete Girişteki İlk Soyadı"
,
index
=
True
)
dogum_tarihi
=
field
.
Date
(
"Do
g
um Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
dogum_tarihi
=
field
.
Date
(
"Do
ğ
um Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
cinsiyet
=
field
.
String
(
"Cinsiyet"
,
index
=
True
)
cinsiyet
=
field
.
String
(
"Cinsiyet"
,
index
=
True
)
emekli_sicil_no
=
field
.
Integer
(
"Emekli Sicil No"
,
index
=
True
)
emekli_sicil_no
=
field
.
Integer
(
"Emekli Sicil No"
,
index
=
True
)
memuriyet_baslama_tarihi
=
field
.
Date
(
"Memuriyete
Ilk Bas
lama Tarihi"
,
index
=
True
,
memuriyet_baslama_tarihi
=
field
.
Date
(
"Memuriyete
İlk Baş
lama Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
format
=
"
%
d.
%
m.
%
Y"
)
kurum_sicil
=
field
.
String
(
"Kurum Sicili"
,
index
=
True
)
kurum_sicil
=
field
.
String
(
"Kurum Sicili"
,
index
=
True
)
maluliyet_kod
=
field
.
Integer
(
"Malul Kod"
,
index
=
True
,
choices
=
"maluliyet_kod"
)
maluliyet_kod
=
field
.
Integer
(
"Malul Kod"
,
index
=
True
,
choices
=
"maluliyet_kod"
)
yetki_seviyesi
=
field
.
String
(
"Yetki Seviyesi"
,
index
=
True
)
yetki_seviyesi
=
field
.
String
(
"Yetki Seviyesi"
,
index
=
True
)
aciklama
=
field
.
String
(
"A
ci
klama"
,
index
=
True
)
aciklama
=
field
.
String
(
"A
çı
klama"
,
index
=
True
)
kuruma_baslama_tarihi
=
field
.
Date
(
"Kuruma Ba
s
lama Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
kuruma_baslama_tarihi
=
field
.
Date
(
"Kuruma Ba
ş
lama Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
gorev_tarihi_6495
=
field
.
Date
(
"Emeklilik Sonrası Göreve Başlama Tarihi"
,
index
=
True
,
gorev_tarihi_6495
=
field
.
Date
(
"Emeklilik Sonrası Göreve Başlama Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
format
=
"
%
d.
%
m.
%
Y"
)
emekli_sicil_6495
=
field
.
Integer
(
"2. Emekli Sicil No"
,
index
=
True
)
emekli_sicil_6495
=
field
.
Integer
(
"2. Emekli Sicil No"
,
index
=
True
)
...
@@ -33,15 +33,17 @@ class NufusKayitlari(Model):
...
@@ -33,15 +33,17 @@ class NufusKayitlari(Model):
sync
=
field
.
Integer
(
"Senkronize"
,
index
=
True
)
sync
=
field
.
Integer
(
"Senkronize"
,
index
=
True
)
personel
=
Personel
(
one_to_one
=
True
)
personel
=
Personel
(
one_to_one
=
True
)
# personel = Personel()
# TODO: Personele gore unique olmali
# TODO: Personele gore unique olmali
class
Meta
:
class
Meta
:
app
=
'Personel'
app
=
'Personel'
verbose_name
=
"Nüfus Bilgi
ler
i"
verbose_name
=
"Nüfus Bilgi
s
i"
verbose_name_plural
=
"Nüfus Bilgileri"
verbose_name_plural
=
"Nüfus Bilgileri"
def
__unicode__
(
self
):
return
'
%
s
%
s
%
s'
%
(
self
.
ad
,
self
.
soyad
,
self
.
emekli_sicil_no
)
class
HizmetKurs
(
Model
):
class
HizmetKurs
(
Model
):
tckn
=
field
.
String
(
"TC Kimlik No"
,
index
=
True
)
tckn
=
field
.
String
(
"TC Kimlik No"
,
index
=
True
)
...
@@ -100,7 +102,7 @@ class HizmetOkul(Model):
...
@@ -100,7 +102,7 @@ class HizmetOkul(Model):
class
HizmetMahkeme
(
Model
):
class
HizmetMahkeme
(
Model
):
tckn
=
field
.
String
(
"TC Kimlik No"
,
index
=
True
)
tckn
=
field
.
String
(
"TC Kimlik No"
,
index
=
True
)
kayit_no
=
field
.
String
(
"
k
ayıt No"
,
index
=
True
)
kayit_no
=
field
.
String
(
"
K
ayıt No"
,
index
=
True
)
mahkeme_ad
=
field
.
String
(
"Mahkeme Adı"
,
index
=
True
)
mahkeme_ad
=
field
.
String
(
"Mahkeme Adı"
,
index
=
True
)
sebep
=
field
.
Integer
(
"Mahkeme Sebebi"
,
index
=
True
,
choices
=
"mahkeme_sebep"
)
sebep
=
field
.
Integer
(
"Mahkeme Sebebi"
,
index
=
True
,
choices
=
"mahkeme_sebep"
)
karar_tarihi
=
field
.
Date
(
"Mahkeme Karar Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
karar_tarihi
=
field
.
Date
(
"Mahkeme Karar Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
...
@@ -226,9 +228,9 @@ class HizmetAcikSure(Model):
...
@@ -226,9 +228,9 @@ class HizmetAcikSure(Model):
goreve_iade_tarih
=
field
.
Date
(
"Göreve İade Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
goreve_iade_tarih
=
field
.
Date
(
"Göreve İade Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
acik_aylik_bas_tarih
=
field
.
Date
(
"Açık Aylık Başlama Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
acik_aylik_bas_tarih
=
field
.
Date
(
"Açık Aylık Başlama Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
acik_aylik_bit_tarih
=
field
.
Date
(
"Açık Aylık Bitiş Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
acik_aylik_bit_tarih
=
field
.
Date
(
"Açık Aylık Bitiş Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
goreve_son_aylik_bas_tarih
=
field
.
Date
(
"Göreve
sonlandırma aylık başlangıç t
arihi"
,
index
=
True
,
goreve_son_aylik_bas_tarih
=
field
.
Date
(
"Göreve
Sonlandırma Aylık Başlangıç T
arihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
format
=
"
%
d.
%
m.
%
Y"
)
goreve_son_aylik_bit_tarih
=
field
.
Date
(
"Göreve
sonlandırma aylık bitiş t
arihi"
,
index
=
True
,
goreve_son_aylik_bit_tarih
=
field
.
Date
(
"Göreve
Sonlandırma Aylık Bitiş T
arihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
format
=
"
%
d.
%
m.
%
Y"
)
s_yonetim_kald_tarih
=
field
.
Date
(
"Sıkı Yönetim Kaldırıldığı Tarih"
,
index
=
True
,
s_yonetim_kald_tarih
=
field
.
Date
(
"Sıkı Yönetim Kaldırıldığı Tarih"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
format
=
"
%
d.
%
m.
%
Y"
)
...
...
ulakbus/models/ogrenci.py
View file @
f2c84d61
...
@@ -21,8 +21,8 @@ class HariciOkutman(Model):
...
@@ -21,8 +21,8 @@ class HariciOkutman(Model):
uyruk
=
field
.
String
(
"Uyruk"
,
index
=
True
)
uyruk
=
field
.
String
(
"Uyruk"
,
index
=
True
)
medeni_hali
=
field
.
Integer
(
"Medeni Hali"
,
index
=
True
,
choices
=
"medeni_hali"
,
required
=
False
)
medeni_hali
=
field
.
Integer
(
"Medeni Hali"
,
index
=
True
,
choices
=
"medeni_hali"
,
required
=
False
)
ikamet_adresi
=
field
.
String
(
"İkamet Adresi"
,
index
=
True
,
required
=
False
)
ikamet_adresi
=
field
.
String
(
"İkamet Adresi"
,
index
=
True
,
required
=
False
)
ikamet_il
=
field
.
String
(
"İkamet
I
l"
,
index
=
True
,
required
=
False
)
ikamet_il
=
field
.
String
(
"İkamet
İ
l"
,
index
=
True
,
required
=
False
)
ikamet_ilce
=
field
.
String
(
"İkamet
Ilc
e"
,
index
=
True
,
required
=
False
)
ikamet_ilce
=
field
.
String
(
"İkamet
İlç
e"
,
index
=
True
,
required
=
False
)
adres_2
=
field
.
String
(
"Adres 2"
,
index
=
True
,
required
=
False
)
adres_2
=
field
.
String
(
"Adres 2"
,
index
=
True
,
required
=
False
)
adres_2_posta_kodu
=
field
.
String
(
"Adres 2 Posta Kodu"
,
index
=
True
,
required
=
False
)
adres_2_posta_kodu
=
field
.
String
(
"Adres 2 Posta Kodu"
,
index
=
True
,
required
=
False
)
telefon_no
=
field
.
String
(
"Telefon Numarası"
,
index
=
True
,
required
=
True
)
telefon_no
=
field
.
String
(
"Telefon Numarası"
,
index
=
True
,
required
=
True
)
...
@@ -48,16 +48,16 @@ class HariciOkutman(Model):
...
@@ -48,16 +48,16 @@ class HariciOkutman(Model):
ana_adi
=
field
.
String
(
"Baba Adi"
,
index
=
True
)
ana_adi
=
field
.
String
(
"Baba Adi"
,
index
=
True
)
dogum_tarihi
=
field
.
Date
(
"Doğum Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
dogum_tarihi
=
field
.
Date
(
"Doğum Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
dogum_yeri
=
field
.
String
(
"Doğum Yeri"
,
index
=
True
)
dogum_yeri
=
field
.
String
(
"Doğum Yeri"
,
index
=
True
)
kayitli_oldugu_il
=
field
.
String
(
"
I
l"
,
index
=
True
)
kayitli_oldugu_il
=
field
.
String
(
"
İ
l"
,
index
=
True
)
kayitli_oldugu_ilce
=
field
.
String
(
"
Ilc
e"
,
index
=
True
)
kayitli_oldugu_ilce
=
field
.
String
(
"
İlç
e"
,
index
=
True
)
kayitli_oldugu_mahalle_koy
=
field
.
String
(
"Mahalle/Koy"
)
kayitli_oldugu_mahalle_koy
=
field
.
String
(
"Mahalle/Koy"
)
kayitli_oldugu_cilt_no
=
field
.
String
(
"Cilt No"
)
kayitli_oldugu_cilt_no
=
field
.
String
(
"Cilt No"
)
kayitli_oldugu_aile_sira_no
=
field
.
String
(
"Aile S
i
ra No"
)
kayitli_oldugu_aile_sira_no
=
field
.
String
(
"Aile S
ı
ra No"
)
kayitli_oldugu_sira_no
=
field
.
String
(
"S
i
ra No"
)
kayitli_oldugu_sira_no
=
field
.
String
(
"S
ı
ra No"
)
kimlik_cuzdani_verildigi_yer
=
field
.
String
(
"C
uzdanin Verildig
i Yer"
)
kimlik_cuzdani_verildigi_yer
=
field
.
String
(
"C
üzdanin Verildiğ
i Yer"
)
kimlik_cuzdani_verilis_nedeni
=
field
.
String
(
"C
uzdanin Verilis
Nedeni"
)
kimlik_cuzdani_verilis_nedeni
=
field
.
String
(
"C
üzdanin Veriliş
Nedeni"
)
kimlik_cuzdani_kayit_no
=
field
.
String
(
"C
uzdan Kayi
t No"
)
kimlik_cuzdani_kayit_no
=
field
.
String
(
"C
üzdan Kayı
t No"
)
kimlik_cuzdani_verilis_tarihi
=
field
.
String
(
"C
uzdan Kayi
t Tarihi"
)
kimlik_cuzdani_verilis_tarihi
=
field
.
String
(
"C
üzdan Kayı
t Tarihi"
)
akademik_yayinlari
=
field
.
String
(
"Akademik Yayınları"
,
index
=
True
,
required
=
False
)
akademik_yayinlari
=
field
.
String
(
"Akademik Yayınları"
,
index
=
True
,
required
=
False
)
verdigi_dersler
=
field
.
String
(
"Verdiği Dersler"
,
index
=
True
,
required
=
False
)
verdigi_dersler
=
field
.
String
(
"Verdiği Dersler"
,
index
=
True
,
required
=
False
)
unvan
=
field
.
Integer
(
"Unvan"
,
index
=
True
,
choices
=
"akademik_unvan"
,
required
=
False
)
unvan
=
field
.
Integer
(
"Unvan"
,
index
=
True
,
choices
=
"akademik_unvan"
,
required
=
False
)
...
@@ -148,7 +148,7 @@ class Program(Model):
...
@@ -148,7 +148,7 @@ class Program(Model):
program_ciktilari
=
field
.
String
(
"Program Çıktıları"
,
index
=
True
)
program_ciktilari
=
field
.
String
(
"Program Çıktıları"
,
index
=
True
)
mezuniyet_kosullari
=
field
.
String
(
"Mezuniyet Koşulları"
,
index
=
True
)
mezuniyet_kosullari
=
field
.
String
(
"Mezuniyet Koşulları"
,
index
=
True
)
kabul_kosullari
=
field
.
String
(
"Kabul Koşulları"
,
index
=
True
)
kabul_kosullari
=
field
.
String
(
"Kabul Koşulları"
,
index
=
True
)
bolum_baskani
=
Role
(
verbose_name
=
'B
olu
m Başkanı'
,
reverse_name
=
'bolum_baskani_program'
)
bolum_baskani
=
Role
(
verbose_name
=
'B
ölü
m Başkanı'
,
reverse_name
=
'bolum_baskani_program'
)
ects_bolum_kordinator
=
Role
(
verbose_name
=
'ECTS Bölüm Koordinator'
,
ects_bolum_kordinator
=
Role
(
verbose_name
=
'ECTS Bölüm Koordinator'
,
reverse_name
=
'ects_koordinator_program'
)
reverse_name
=
'ects_koordinator_program'
)
akademik_kordinator
=
Role
(
verbose_name
=
'Akademik Koordinator'
,
akademik_kordinator
=
Role
(
verbose_name
=
'Akademik Koordinator'
,
...
@@ -218,7 +218,7 @@ class Ders(Model):
...
@@ -218,7 +218,7 @@ class Ders(Model):
class
Sube
(
Model
):
class
Sube
(
Model
):
ad
=
field
.
String
(
"Ad"
,
index
=
True
)
ad
=
field
.
String
(
"Ad"
,
index
=
True
)
kontenjan
=
field
.
Integer
(
"Kontenjan"
,
index
=
True
)
kontenjan
=
field
.
Integer
(
"Kontenjan"
,
index
=
True
)
dis_kontenjan
=
field
.
Integer
(
"D
is
Kontenjan"
,
index
=
True
)
dis_kontenjan
=
field
.
Integer
(
"D
ış
Kontenjan"
,
index
=
True
)
okutman
=
Okutman
()
okutman
=
Okutman
()
ders
=
Ders
()
ders
=
Ders
()
donem
=
Donem
()
donem
=
Donem
()
...
@@ -228,8 +228,8 @@ class Sube(Model):
...
@@ -228,8 +228,8 @@ class Sube(Model):
class
Meta
:
class
Meta
:
app
=
'Ogrenci'
app
=
'Ogrenci'
verbose_name
=
"
S
ube"
verbose_name
=
"
Ş
ube"
verbose_name_plural
=
"
S
ubeler"
verbose_name_plural
=
"
Ş
ubeler"
list_fields
=
[
'ad'
,
'kontenjan'
]
list_fields
=
[
'ad'
,
'kontenjan'
]
search_fields
=
[
'ad'
,
'kontenjan'
]
search_fields
=
[
'ad'
,
'kontenjan'
]
...
@@ -247,8 +247,8 @@ class Sinav(Model):
...
@@ -247,8 +247,8 @@ class Sinav(Model):
class
Meta
:
class
Meta
:
app
=
'Ogrenci'
app
=
'Ogrenci'
verbose_name
=
"S
i
nav"
verbose_name
=
"S
ı
nav"
verbose_name_plural
=
"S
i
navlar"
verbose_name_plural
=
"S
ı
navlar"
list_fields
=
[
'tarih'
,
'yapilacagi_yer'
]
list_fields
=
[
'tarih'
,
'yapilacagi_yer'
]
search_fields
=
[
'aciklama'
,
'tarih'
]
search_fields
=
[
'aciklama'
,
'tarih'
]
...
@@ -282,13 +282,13 @@ class Ogrenci(Model):
...
@@ -282,13 +282,13 @@ class Ogrenci(Model):
cuzdan_seri_no
=
field
.
String
(
"Seri No"
,
index
=
True
)
cuzdan_seri_no
=
field
.
String
(
"Seri No"
,
index
=
True
)
kayitli_oldugu_il
=
field
.
String
(
"İl"
,
index
=
True
)
kayitli_oldugu_il
=
field
.
String
(
"İl"
,
index
=
True
)
kayitli_oldugu_ilce
=
field
.
String
(
"İlçe"
,
index
=
True
)
kayitli_oldugu_ilce
=
field
.
String
(
"İlçe"
,
index
=
True
)
kayitli_oldugu_mahalle_koy
=
field
.
String
(
"Mahalle/K
o
y"
)
kayitli_oldugu_mahalle_koy
=
field
.
String
(
"Mahalle/K
ö
y"
)
kayitli_oldugu_cilt_no
=
field
.
String
(
"Cilt No"
)
kayitli_oldugu_cilt_no
=
field
.
String
(
"Cilt No"
)
kayitli_oldugu_aile_sira_no
=
field
.
String
(
"Aile Sıra No"
)
kayitli_oldugu_aile_sira_no
=
field
.
String
(
"Aile Sıra No"
)
kayitli_oldugu_sira_no
=
field
.
String
(
"Sıra No"
)
kayitli_oldugu_sira_no
=
field
.
String
(
"Sıra No"
)
kimlik_cuzdani_verildigi_yer
=
field
.
String
(
"Nüfus C
uzdanı Verildig
i Yer"
)
kimlik_cuzdani_verildigi_yer
=
field
.
String
(
"Nüfus C
üzdanı Verildiğ
i Yer"
)
kimlik_cuzdani_verilis_nedeni
=
field
.
String
(
"N
ufus Cuzdanı Verilis
Nedeni"
)
kimlik_cuzdani_verilis_nedeni
=
field
.
String
(
"N
üfus Cüzdanı Veriliş
Nedeni"
)
kimlik_cuzdani_kayit_no
=
field
.
String
(
"Nüfus C
uzdanı Kayi
t No"
)
kimlik_cuzdani_kayit_no
=
field
.
String
(
"Nüfus C
üzdanı Kayı
t No"
)
kimlik_cuzdani_verilis_tarihi
=
field
.
Date
(
"Nüfus Cüzdanı Veriliş Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
kimlik_cuzdani_verilis_tarihi
=
field
.
Date
(
"Nüfus Cüzdanı Veriliş Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
baba_adi
=
field
.
String
(
"Ana Adı"
,
index
=
True
)
baba_adi
=
field
.
String
(
"Ana Adı"
,
index
=
True
)
ana_adi
=
field
.
String
(
"Baba Adı"
,
index
=
True
)
ana_adi
=
field
.
String
(
"Baba Adı"
,
index
=
True
)
...
@@ -308,8 +308,8 @@ class Ogrenci(Model):
...
@@ -308,8 +308,8 @@ class Ogrenci(Model):
class
Meta
:
class
Meta
:
app
=
'Ogrenci'
app
=
'Ogrenci'
verbose_name
=
"
O
grenci"
verbose_name
=
"
Ö
grenci"
verbose_name_plural
=
"
O
grenciler"
verbose_name_plural
=
"
Ö
grenciler"
list_fields
=
[
'ad'
,
'soyad'
]
list_fields
=
[
'ad'
,
'soyad'
]
search_fields
=
[
'ad'
,
'soyad'
]
search_fields
=
[
'ad'
,
'soyad'
]
...
@@ -330,6 +330,9 @@ class OncekiEgitimBilgisi(Model):
...
@@ -330,6 +330,9 @@ class OncekiEgitimBilgisi(Model):
list_fields
=
[
'okul_adi'
,
'diploma_notu'
,
'mezuniyet_yili'
]
list_fields
=
[
'okul_adi'
,
'diploma_notu'
,
'mezuniyet_yili'
]
search_fields
=
[
'okul_adi'
,
'diploma_notu'
,
'mezuniyet_yili'
]
search_fields
=
[
'okul_adi'
,
'diploma_notu'
,
'mezuniyet_yili'
]
def
__unicode__
(
self
):
return
'
%
s
%
s
%
s'
%
(
self
.
okul_adi
,
self
.
mezuniyet_yili
,
self
.
ogrenci
.
ad
)
class
OgrenciProgram
(
Model
):
class
OgrenciProgram
(
Model
):
ogrenci_no
=
field
.
String
(
"Öğrenci Numarası"
,
index
=
True
)
ogrenci_no
=
field
.
String
(
"Öğrenci Numarası"
,
index
=
True
)
...
@@ -344,8 +347,8 @@ class OgrenciProgram(Model):
...
@@ -344,8 +347,8 @@ class OgrenciProgram(Model):
class
Meta
:
class
Meta
:
app
=
'Ogrenci'
app
=
'Ogrenci'
verbose_name
=
"Öğrenci Program"
verbose_name
=
"Öğrenci Program
ı
"
verbose_name_plural
=
"Öğrenci Program"
verbose_name_plural
=
"Öğrenci Program
ları
"
def
__unicode__
(
self
):
def
__unicode__
(
self
):
return
'
%
s
%
s -
%
s /
%
s'
%
(
self
.
ogrenci
.
ad
,
self
.
ogrenci
.
soyad
,
self
.
program
.
adi
,
self
.
program
.
yil
)
return
'
%
s
%
s -
%
s /
%
s'
%
(
self
.
ogrenci
.
ad
,
self
.
ogrenci
.
soyad
,
self
.
program
.
adi
,
self
.
program
.
yil
)
...
@@ -358,8 +361,8 @@ class OgrenciDersi(Model):
...
@@ -358,8 +361,8 @@ class OgrenciDersi(Model):
class
Meta
:
class
Meta
:
app
=
'Ogrenci'
app
=
'Ogrenci'
verbose_name
=
"
O
grenci Dersi"
verbose_name
=
"
Ö
grenci Dersi"
verbose_name_plural
=
"
Og
renci Dersleri"
verbose_name_plural
=
"
Öğ
renci Dersleri"
list_fields
=
[
'sube_dersi'
,
'alis_bicimi'
]
list_fields
=
[
'sube_dersi'
,
'alis_bicimi'
]
search_fields
=
[
'alis_bicimi'
,
]
search_fields
=
[
'alis_bicimi'
,
]
...
@@ -381,8 +384,8 @@ class DersKatilimi(Model):
...
@@ -381,8 +384,8 @@ class DersKatilimi(Model):
class
Meta
:
class
Meta
:
app
=
'Ogrenci'
app
=
'Ogrenci'
verbose_name
=
"Ders Devams
izligi
"
verbose_name
=
"Ders Devams
ızlığı
"
verbose_name_plural
=
"Ders Devams
izli
klari"
verbose_name_plural
=
"Ders Devams
ızlı
klari"
list_fields
=
[
'katilim_durumu'
,
'sube_dersi'
]
list_fields
=
[
'katilim_durumu'
,
'sube_dersi'
]
search_fields
=
[
'sube_dersi'
,
'katilim_durumu'
]
search_fields
=
[
'sube_dersi'
,
'katilim_durumu'
]
...
@@ -410,8 +413,8 @@ class Borc(Model):
...
@@ -410,8 +413,8 @@ class Borc(Model):
class
Meta
:
class
Meta
:
app
=
'Ogrenci'
app
=
'Ogrenci'
verbose_name
=
"Bor
c
"
verbose_name
=
"Bor
ç
"
verbose_name_plural
=
"Bor
c
lar"
verbose_name_plural
=
"Bor
ç
lar"
list_fields
=
[
'miktar'
,
'son_odeme_tarihi'
]
list_fields
=
[
'miktar'
,
'son_odeme_tarihi'
]
search_fields
=
[
'miktar'
,
'odeme_tarihi'
]
search_fields
=
[
'miktar'
,
'odeme_tarihi'
]
...
@@ -501,7 +504,7 @@ AKADEMIK_TAKVIM_ETKINLIKLERI = [
...
@@ -501,7 +504,7 @@ AKADEMIK_TAKVIM_ETKINLIKLERI = [
class
AkademikTakvim
(
Model
):
class
AkademikTakvim
(
Model
):
birim
=
Unit
(
"Birim"
,
index
=
True
)
birim
=
Unit
(
"Birim"
,
index
=
True
)
yil
=
field
.
Date
(
"Y
i
l"
,
index
=
True
)
yil
=
field
.
Date
(
"Y
ı
l"
,
index
=
True
)
class
Takvim
(
ListNode
):
class
Takvim
(
ListNode
):
etkinlik
=
field
.
Integer
(
"Etkinlik"
,
index
=
True
,
choices
=
AKADEMIK_TAKVIM_ETKINLIKLERI
)
etkinlik
=
field
.
Integer
(
"Etkinlik"
,
index
=
True
,
choices
=
AKADEMIK_TAKVIM_ETKINLIKLERI
)
...
@@ -511,12 +514,13 @@ class AkademikTakvim(Model):
...
@@ -511,12 +514,13 @@ class AkademikTakvim(Model):
class
Meta
:
class
Meta
:
app
=
'Ogrenci'
app
=
'Ogrenci'
verbose_name
=
"Akademik Takvim"
verbose_name
=
"Akademik Takvim"
verbose_name_plural
=
"Akademik Takvim"
verbose_name_plural
=
"Akademik Takvim
ler
"
list_fields
=
[
'_birim'
,
'yil'
]
list_fields
=
[
'_birim'
,
'yil'
]
# search_fields = ['yil']
# search_fields = ['yil']
def
_birim
(
self
):
def
_birim
(
self
):
return
"
%
s"
%
self
.
birim
return
"
%
s"
%
self
.
birim
_birim
.
title
=
'Birim'
_birim
.
title
=
'Birim'
def
__unicode__
(
self
):
def
__unicode__
(
self
):
...
...
ulakbus/models/personel.py
View file @
f2c84d61
...
@@ -23,8 +23,8 @@ class Personel(Model):
...
@@ -23,8 +23,8 @@ class Personel(Model):
cinsiyet
=
field
.
Integer
(
"Cinsiyet"
,
index
=
True
,
choices
=
'cinsiyet'
)
cinsiyet
=
field
.
Integer
(
"Cinsiyet"
,
index
=
True
,
choices
=
'cinsiyet'
)
uyruk
=
field
.
String
(
"Uyruk"
,
index
=
True
)
uyruk
=
field
.
String
(
"Uyruk"
,
index
=
True
)
ikamet_adresi
=
field
.
String
(
"İkamet Adresi"
,
index
=
True
)
ikamet_adresi
=
field
.
String
(
"İkamet Adresi"
,
index
=
True
)
ikamet_il
=
field
.
String
(
"İkamet
I
l"
,
index
=
True
)
ikamet_il
=
field
.
String
(
"İkamet
İ
l"
,
index
=
True
)
ikamet_ilce
=
field
.
String
(
"İkamet
Ilc
e"
,
index
=
True
)
ikamet_ilce
=
field
.
String
(
"İkamet
İlç
e"
,
index
=
True
)
adres_2
=
field
.
String
(
"Adres 2"
,
index
=
True
)
adres_2
=
field
.
String
(
"Adres 2"
,
index
=
True
)
adres_2_posta_kodu
=
field
.
String
(
"Adres 2 Posta Kodu"
,
index
=
True
)
adres_2_posta_kodu
=
field
.
String
(
"Adres 2 Posta Kodu"
,
index
=
True
)
oda_no
=
field
.
String
(
"Oda Numarası"
,
index
=
True
)
oda_no
=
field
.
String
(
"Oda Numarası"
,
index
=
True
)
...
@@ -39,31 +39,31 @@ class Personel(Model):
...
@@ -39,31 +39,31 @@ class Personel(Model):
kan_grubu
=
field
.
String
(
"Kan Grubu"
,
index
=
True
)
kan_grubu
=
field
.
String
(
"Kan Grubu"
,
index
=
True
)
ehliyet
=
field
.
String
(
"Ehliyet"
,
index
=
True
)
ehliyet
=
field
.
String
(
"Ehliyet"
,
index
=
True
)
verdigi_dersler
=
field
.
String
(
"Verdiği Dersler"
,
index
=
True
)
verdigi_dersler
=
field
.
String
(
"Verdiği Dersler"
,
index
=
True
)
unvan
=
field
.
Integer
(
"
U
nvan"
,
index
=
True
,
choices
=
"akademik_unvan"
)
unvan
=
field
.
Integer
(
"
Ü
nvan"
,
index
=
True
,
choices
=
"akademik_unvan"
)
biyografi
=
field
.
Text
(
"Biyografi"
)
biyografi
=
field
.
Text
(
"Biyografi"
)
notlar
=
field
.
Text
(
"Notlar"
)
notlar
=
field
.
Text
(
"Notlar"
)
engelli_durumu
=
field
.
String
(
"Engellilik"
,
index
=
True
)
engelli_durumu
=
field
.
String
(
"Engellilik"
,
index
=
True
)
engel_grubu
=
field
.
String
(
"Engel Grubu"
,
index
=
True
)
engel_grubu
=
field
.
String
(
"Engel Grubu"
,
index
=
True
)
engel_derecesi
=
field
.
String
(
"Engel Derecesi"
)
engel_derecesi
=
field
.
String
(
"Engel Derecesi"
)
engel_orani
=
field
.
Integer
(
"Engellilik Oran
i
"
)
engel_orani
=
field
.
Integer
(
"Engellilik Oran
ı
"
)
personel_turu
=
field
.
Integer
(
"Personel Türü"
,
choices
=
PERSONEL_TURU
,
index
=
True
)
personel_turu
=
field
.
Integer
(
"Personel Türü"
,
choices
=
PERSONEL_TURU
,
index
=
True
)
cuzdan_seri
=
field
.
String
(
"Seri"
,
index
=
True
)
cuzdan_seri
=
field
.
String
(
"Seri"
,
index
=
True
)
cuzdan_seri_no
=
field
.
String
(
"Seri No"
,
index
=
True
)
cuzdan_seri_no
=
field
.
String
(
"Seri No"
,
index
=
True
)
baba_adi
=
field
.
String
(
"Ana Ad
i
"
,
index
=
True
)
baba_adi
=
field
.
String
(
"Ana Ad
ı
"
,
index
=
True
)
ana_adi
=
field
.
String
(
"Baba Ad
i
"
,
index
=
True
)
ana_adi
=
field
.
String
(
"Baba Ad
ı
"
,
index
=
True
)
dogum_tarihi
=
field
.
Date
(
"Doğum Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
dogum_tarihi
=
field
.
Date
(
"Doğum Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
dogum_yeri
=
field
.
String
(
"Doğum Yeri"
,
index
=
True
)
dogum_yeri
=
field
.
String
(
"Doğum Yeri"
,
index
=
True
)
medeni_hali
=
field
.
Integer
(
"Medeni Hali"
,
index
=
True
,
choices
=
"medeni_hali"
)
medeni_hali
=
field
.
Integer
(
"Medeni Hali"
,
index
=
True
,
choices
=
"medeni_hali"
)
kayitli_oldugu_il
=
field
.
String
(
"
I
l"
,
index
=
True
)
kayitli_oldugu_il
=
field
.
String
(
"
İ
l"
,
index
=
True
)
kayitli_oldugu_ilce
=
field
.
String
(
"
Ilc
e"
,
index
=
True
)
kayitli_oldugu_ilce
=
field
.
String
(
"
İlç
e"
,
index
=
True
)
kayitli_oldugu_mahalle_koy
=
field
.
String
(
"Mahalle/K
o
y"
)
kayitli_oldugu_mahalle_koy
=
field
.
String
(
"Mahalle/K
ö
y"
)
kayitli_oldugu_cilt_no
=
field
.
String
(
"Cilt No"
)
kayitli_oldugu_cilt_no
=
field
.
String
(
"Cilt No"
)
kayitli_oldugu_aile_sira_no
=
field
.
String
(
"Aile S
i
ra No"
)
kayitli_oldugu_aile_sira_no
=
field
.
String
(
"Aile S
ı
ra No"
)
kayitli_oldugu_sira_no
=
field
.
String
(
"S
i
ra No"
)
kayitli_oldugu_sira_no
=
field
.
String
(
"S
ı
ra No"
)
kimlik_cuzdani_verildigi_yer
=
field
.
String
(
"C
uzdanin Verildig
i Yer"
)
kimlik_cuzdani_verildigi_yer
=
field
.
String
(
"C
üzdanın Verildiğ
i Yer"
)
kimlik_cuzdani_verilis_nedeni
=
field
.
String
(
"C
uzdanin Verilis
Nedeni"
)
kimlik_cuzdani_verilis_nedeni
=
field
.
String
(
"C
üzdanın Veriliş
Nedeni"
)
kimlik_cuzdani_kayit_no
=
field
.
String
(
"C
uzdan Kayi
t No"
)
kimlik_cuzdani_kayit_no
=
field
.
String
(
"C
üzdan Kayı
t No"
)
kimlik_cuzdani_verilis_tarihi
=
field
.
String
(
"C
uzdan Kayi
t Tarihi"
)
kimlik_cuzdani_verilis_tarihi
=
field
.
String
(
"C
üzdan Kayı
t Tarihi"
)
birim
=
Unit
(
"Birim"
)
birim
=
Unit
(
"Birim"
)
hizmet_sinifi
=
field
.
Integer
(
"Hizmet Sınıfı"
,
index
=
True
,
choices
=
"hizmet_sinifi"
)
hizmet_sinifi
=
field
.
Integer
(
"Hizmet Sınıfı"
,
index
=
True
,
choices
=
"hizmet_sinifi"
)
user
=
User
(
one_to_one
=
True
)
user
=
User
(
one_to_one
=
True
)
...
@@ -93,7 +93,7 @@ class AdresBilgileri(Model):
...
@@ -93,7 +93,7 @@ class AdresBilgileri(Model):
adres
=
field
.
String
(
"Adres"
,
index
=
True
)
adres
=
field
.
String
(
"Adres"
,
index
=
True
)
ilce
=
field
.
String
(
"İlçe"
,
index
=
True
)
ilce
=
field
.
String
(
"İlçe"
,
index
=
True
)
il
=
field
.
String
(
"İl"
,
index
=
True
)
il
=
field
.
String
(
"İl"
,
index
=
True
)
personel
=
Personel
()
personel
=
Personel
(
one_to_one
=
True
)
class
Meta
:
class
Meta
:
verbose_name
=
"Adres Bilgisi"
verbose_name
=
"Adres Bilgisi"
...
@@ -105,12 +105,12 @@ class AdresBilgileri(Model):
...
@@ -105,12 +105,12 @@ class AdresBilgileri(Model):
class
KurumIciGorevlendirmeBilgileri
(
Model
):
class
KurumIciGorevlendirmeBilgileri
(
Model
):
gorev_tipi
=
field
.
String
(
"Görev Tipi"
,
index
=
True
,
choices
=
"gorev_tipi"
)
gorev_tipi
=
field
.
String
(
"Görev Tipi"
,
index
=
True
,
choices
=
"gorev_tipi"
)
kurum_ici_gorev_baslama_tarihi
=
field
.
Date
(
"Ba
s
lama Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
kurum_ici_gorev_baslama_tarihi
=
field
.
Date
(
"Ba
ş
lama Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
kurum_ici_gorev_bitis_tarihi
=
field
.
Date
(
"Bitiş Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
kurum_ici_gorev_bitis_tarihi
=
field
.
Date
(
"Bitiş Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
birim
=
Unit
()
birim
=
Unit
()
aciklama
=
field
.
String
(
"A
ci
klama"
)
aciklama
=
field
.
String
(
"A
çı
klama"
)
resmi_yazi_sayi
=
field
.
String
(
"Resmi Yaz
i Sayi
"
)
resmi_yazi_sayi
=
field
.
String
(
"Resmi Yaz
ı Sayı
"
)
resmi_yazi_tarih
=
field
.
Date
(
"Resmi Yaz
i
Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
resmi_yazi_tarih
=
field
.
Date
(
"Resmi Yaz
ı
Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
personel
=
Personel
()
personel
=
Personel
()
def
__unicode__
(
self
):
def
__unicode__
(
self
):
...
@@ -138,23 +138,23 @@ class KurumIciGorevlendirmeBilgileri(Model):
...
@@ -138,23 +138,23 @@ class KurumIciGorevlendirmeBilgileri(Model):
class
KurumDisiGorevlendirmeBilgileri
(
Model
):
class
KurumDisiGorevlendirmeBilgileri
(
Model
):
gorev_tipi
=
field
.
Integer
(
"Görev Tipi"
,
index
=
True
)
gorev_tipi
=
field
.
Integer
(
"Görev Tipi"
,
index
=
True
)
kurum_disi_gorev_baslama_tarihi
=
field
.
Date
(
"Ba
s
lama Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
kurum_disi_gorev_baslama_tarihi
=
field
.
Date
(
"Ba
ş
lama Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
kurum_disi_gorev_bitis_tarihi
=
field
.
Date
(
"Bitiş Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
kurum_disi_gorev_bitis_tarihi
=
field
.
Date
(
"Bitiş Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
aciklama
=
field
.
Text
(
"A
ci
klama"
,
index
=
True
)
aciklama
=
field
.
Text
(
"A
çı
klama"
,
index
=
True
)
resmi_yazi_sayi
=
field
.
String
(
"Resmi Yaz
i Sayi
"
)
resmi_yazi_sayi
=
field
.
String
(
"Resmi Yaz
ı Sayı
"
)
resmi_yazi_tarih
=
field
.
Date
(
"Resmi Yaz
i
Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
resmi_yazi_tarih
=
field
.
Date
(
"Resmi Yaz
ı
Tarihi"
,
index
=
True
,
format
=
"
%
d.
%
m.
%
Y"
)
maas
=
field
.
Boolean
(
"Maa
s
"
)
maas
=
field
.
Boolean
(
"Maa
ş
"
)
yevmiye
=
field
.
Boolean
(
"Yevmiye"
,
default
=
False
)
yevmiye
=
field
.
Boolean
(
"Yevmiye"
,
default
=
False
)
yolluk
=
field
.
Boolean
(
"Yolluk"
,
default
=
False
)
yolluk
=
field
.
Boolean
(
"Yolluk"
,
default
=
False
)
ulke
=
field
.
Integer
(
"
U
lke"
,
default
=
"90"
,
choices
=
"ulke"
,
index
=
True
)
ulke
=
field
.
Integer
(
"
Ü
lke"
,
default
=
"90"
,
choices
=
"ulke"
,
index
=
True
)
personel
=
Personel
()
personel
=
Personel
()
def
__unicode__
(
self
):
def
__unicode__
(
self
):
return
"
%
s
%
s
%
s"
%
(
self
.
gorev_tipi
,
self
.
aciklama
,
self
.
ulke
)
return
"
%
s
%
s
%
s"
%
(
self
.
gorev_tipi
,
self
.
aciklama
,
self
.
ulke
)
class
Meta
:
class
Meta
:
verbose_name
=
"Kurum D
isi Go
revlendirme"
verbose_name
=
"Kurum D
ışı Gö
revlendirme"
verbose_name_plural
=
"Kurum D
isi Go
revlendirmeler"
verbose_name_plural
=
"Kurum D
ışı Gö
revlendirmeler"
# list_search = ["aciklama"]
# list_search = ["aciklama"]
list_fields
=
[
"ulke"
,
"gorev_tipi"
,
"kurum_disi_gorev_baslama_tarihi"
]
list_fields
=
[
"ulke"
,
"gorev_tipi"
,
"kurum_disi_gorev_baslama_tarihi"
]
list_filters
=
[
"ulke"
,
"gorev_tipi"
,
"kurum_disi_gorev_baslama_tarihi"
]
list_filters
=
[
"ulke"
,
"gorev_tipi"
,
"kurum_disi_gorev_baslama_tarihi"
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment