author | Santosh G. Vattam <vattam.santosh@gmail.com> |
Mon, 10 Aug 2009 16:58:36 +0530 | |
changeset 36 | a7c525ec281a |
parent 35 | c64531b3afb4 |
child 37 | e78a5483553e |
permissions | -rw-r--r-- |
0 | 1 |
"""This module contains the data model for the project funded by NME |
2 |
through ICT. |
|
3 |
""" |
|
4 |
||
5 |
||
6 |
__authors__ = [ |
|
7 |
'"Madhusudan.C.S" <madhusudancs@gmail.com>', |
|
8 |
] |
|
9 |
||
10 |
||
11 |
from django.db import models |
|
12 |
from django.contrib.auth.models import User |
|
13 |
||
14 |
||
35
c64531b3afb4
Added settings.py to .hgignore.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
32
diff
changeset
|
15 |
def dict_tuple(d): |
c64531b3afb4
Added settings.py to .hgignore.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
32
diff
changeset
|
16 |
"""Function to return a tuple from dictionary |
c64531b3afb4
Added settings.py to .hgignore.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
32
diff
changeset
|
17 |
""" |
c64531b3afb4
Added settings.py to .hgignore.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
32
diff
changeset
|
18 |
|
c64531b3afb4
Added settings.py to .hgignore.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
32
diff
changeset
|
19 |
return [(v, k) for k, v in d.items()] |
c64531b3afb4
Added settings.py to .hgignore.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
32
diff
changeset
|
20 |
|
c64531b3afb4
Added settings.py to .hgignore.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
32
diff
changeset
|
21 |
|
22 | 22 |
def sort_dict(d): |
23 |
"""Function to sort dictionary elements. |
|
24 |
""" |
|
25 |
||
26 |
items = [(v, k) for k, v in d.items()] |
|
27 |
items.sort() |
|
28 |
return [(k, v) for v, k in items] |
|
29 |
||
30 |
||
0 | 31 |
class Project(models.Model): |
32 |
"""Model class for NME funded projects. |
|
33 |
""" |
|
34 |
||
19 | 35 |
LINE_ITEM_CHOICES = { |
36 |
"NP": "NPTEL phase II / III", |
|
37 |
"PG": "PG Classes", |
|
38 |
"UG": "UG Classes", |
|
39 |
"VC": "Video content digitization, conversion, chunking and dubbing CEC / IGNOU / NCERT / SIET / OTHERS", |
|
40 |
"PE": "Provision of e-books and e-journals free to the learners", |
|
41 |
"SQ": "Standardisation of quality assurance of contents & certification / automation of certification", |
|
42 |
"DS": "Developing suitable pedagogical methods for various classes, intellectual calibers and research in e-learning", |
|
43 |
"DL": "Development of language converter and translation tool kit", |
|
44 |
"DR": "Development and realization of Virtual Reality Laboratories and supporting facilities for e-learning", |
|
45 |
"DC": "Development of Certification & Testing Modules for Virtual Technological Universities & creation of VTU, multi media research and international programmes", |
|
46 |
"ED": "Experimentation and Development of ultra low cost access devices for wider coverage of learners & their field trials", |
|
47 |
"TT": "Talk to a teacher to provide a substitute for coaching for the economically poor students", |
|
48 |
"DH": "Development of software controlled hardware programming for robotics other crucial areas", |
|
49 |
"AD": "Adaptation & deployment of open source simulation packages equivalent to MATLAB, ORCAD etc.", |
|
50 |
"DU": "Development of unified ERP system for Educational Institutions", |
|
51 |
"PT": "Publicity & training of motivators & trainers to ensure full utilization of the systems by institutions & students. Teacher Empowerment 'B'", |
|
52 |
"CC": "Conversion of available content in various regional languages", |
|
53 |
"DV": "Development of Vocational Educational modules and use of haptic devices for education & training", |
|
54 |
} |
|
55 |
||
56 |
STATE_CHOICES = { |
|
22 | 57 |
"AN": "Andaman & Nicobar", |
19 | 58 |
"DN": "Dadra and Nagar Haveli", |
59 |
"DL": "Delhi", |
|
60 |
"WB": "West Bengal", |
|
61 |
"HR": "Haryana", |
|
62 |
"HP": "Himachal Pradesh", |
|
63 |
"UP": "Uttar Pradesh", |
|
64 |
"JH": "Jharkhand", |
|
65 |
"BR": "Bihar", |
|
66 |
"JK": "Jammu & Kashmir", |
|
67 |
"TN": "Tamil Nadu", |
|
68 |
"LD": "Lakshadweep", |
|
69 |
"NL": "Nagaland", |
|
70 |
"PY": "Pondicherry", |
|
71 |
"TR": "Tripura", |
|
72 |
"PB": "Punjab", |
|
73 |
"DD": "Daman & Diu", |
|
74 |
"RJ": "Rajasthan", |
|
75 |
"CH": "Chandigarh", |
|
76 |
"CG": "Chattisgarh", |
|
77 |
"AP": "Andhra Pradesh", |
|
78 |
"AS": "Assam", |
|
79 |
"AR": "Arunachal Pradesh", |
|
80 |
"GA": "Goa", |
|
81 |
"GJ": "Gujarat", |
|
82 |
"KA": "Karnataka", |
|
83 |
"UA": "Uttarakhand", |
|
84 |
"ML": "Meghalaya", |
|
85 |
"MN": "Manipur", |
|
86 |
"MH": "Maharashtra", |
|
87 |
"KL": "Kerala", |
|
88 |
"SK": "Sikkim", |
|
89 |
"MP": "Madhya Pradesh", |
|
90 |
"OR": "Orissa", |
|
91 |
"MZ": "Mizoram" |
|
92 |
} |
|
0 | 93 |
|
19 | 94 |
DISTRICT_CHOICES = { |
95 |
"JHES": "Purba Singhbhum", |
|
96 |
"TNRA": "Ramanathapuram", |
|
97 |
"PBAM": "Amritsar", |
|
98 |
"ORMY": "Mayurbhanj", |
|
99 |
"UPMG": "Maharajganj", |
|
100 |
"ORML": "Malkangiri", |
|
101 |
"MZAI": "Aizawl", |
|
102 |
"NLKO": "Kohima", |
|
103 |
"PBFR": "Faridkot", |
|
104 |
"ARPA": "Papum Pare", |
|
105 |
"SKES": "East Sikkim", |
|
106 |
"UAPI": "Pithoragharh", |
|
107 |
"MHNS": "Nashik", |
|
108 |
"PBFI": "Firozpur", |
|
109 |
"KAKD": "Kodagu", |
|
110 |
"APRA": "Rangareddi", |
|
111 |
"BRSO": "Sheohar", |
|
112 |
"UPSV": "Shravasti", |
|
113 |
"KAKL": "Kolar District", |
|
114 |
"PYPO": "Puducherry", |
|
115 |
"UPSU": "Sultanpur", |
|
116 |
"UPSR": "Sant Ravidas Nagar", |
|
117 |
"MHRT": "Ratnagiri", |
|
118 |
"UPSN": "Siddharthnagar", |
|
119 |
"PBHO": "Hoshiarpur", |
|
120 |
"UPSJ": "Shahjahanpur", |
|
121 |
"KAKP": "Koppal District", |
|
122 |
"UPSI": "Sitapur", |
|
123 |
"BRSP": "Sheikhpura", |
|
124 |
"BRSR": "Saran", |
|
125 |
"BRSU": "Supaul", |
|
126 |
"BRST": "Sitamarhi", |
|
127 |
"BRSW": "Siwan", |
|
128 |
"UPSA": "Saharanpur", |
|
129 |
"KADH": "Dharwad District", |
|
130 |
"JHLO": "Lohardaga", |
|
131 |
"ASSO": "Sonitpur", |
|
132 |
"KADK": "Dakshina Kannada", |
|
133 |
"ASSI": "Sibsagar", |
|
134 |
"KADA": "Davanagere District", |
|
135 |
"ORJP": "Jajapur (Jajpur)", |
|
136 |
"ORJS": "Jagatsinghpur", |
|
137 |
"UPMP": "Mainpuri", |
|
138 |
"MHBU": "Buldhana", |
|
139 |
"TNKR": "Karur", |
|
140 |
"WBME": "Midnapore", |
|
141 |
"UPUN": "Unnao", |
|
142 |
"TNKC": "Kanchipuram", |
|
143 |
"SKSS": "South Sikkim", |
|
144 |
"MPUM": "Umaria", |
|
145 |
"JKJA": "Jammu", |
|
146 |
"MPUJ": "Ujjain", |
|
147 |
"CGMA": "Mahasamund", |
|
148 |
"GJPA": "Patan", |
|
149 |
"UACL": "Chamoli", |
|
150 |
"PYMA": "Mahe", |
|
151 |
"GJPO": "Porbandar", |
|
152 |
"GJPM": "Panchmahal", |
|
153 |
"RJHA": "Hanumangarh", |
|
154 |
"WBDD": "Dakshin Dinajpur", |
|
155 |
"WBDA": "Darjeeling", |
|
156 |
"HPUN": "Una", |
|
157 |
"PBFT": "Fatehgarh Sahib", |
|
158 |
"MHLA": "Latur", |
|
159 |
"GJVD": "Vadodara", |
|
160 |
"UPLK": "Lakhimpur Kheri", |
|
161 |
"JHBO": "Bokaro", |
|
162 |
"HRHI": "Hissar", |
|
163 |
"WBJA": "Jalpaiguri", |
|
164 |
"UPDE": "Deoria", |
|
165 |
"MPRE": "Rewa", |
|
166 |
"MPRG": "Rajgarh", |
|
167 |
"MPRL": "Ratlam", |
|
168 |
"ASLA": "Lakhimpur", |
|
169 |
"MPRS": "Raisen", |
|
170 |
"HPMA": "Mandi", |
|
171 |
"PBMU": "Mukatsar", |
|
172 |
"BRPA": "Patna", |
|
173 |
"BRRO": "Rohtas", |
|
174 |
"PBMA": "Mansa", |
|
175 |
"BRPU": "Purnia", |
|
176 |
"PBMO": "Moga", |
|
177 |
"RJSR": "Sirohi", |
|
178 |
"MHAH": "Ahmednagar", |
|
179 |
"MHAK": "Akola", |
|
180 |
"MHAM": "Amrawati", |
|
181 |
"HRSN": "Sonepat", |
|
182 |
"MHAU": "Aurangabad", |
|
183 |
"ARTI": "Tirap", |
|
184 |
"PBBA": "Bathinda", |
|
185 |
"RJSK": "Sikar", |
|
186 |
"KAUD": "Udupi District", |
|
187 |
"RJSM": "Sawai Madhopur", |
|
188 |
"RJAJ": "Ajmer", |
|
189 |
"APVZ": "Vizianagaram", |
|
190 |
"RJAL": "Alwar", |
|
191 |
"MHWR": "Wardha", |
|
192 |
"MHWS": "Washim", |
|
193 |
"APVS": "Vishakhapatnam", |
|
194 |
"KAHV": "Haveri District", |
|
195 |
"KAHS": "Hassan District", |
|
196 |
"MPGW": "Gwalior", |
|
197 |
"MPGU": "Guna", |
|
198 |
"JHPK": "Pakur", |
|
199 |
"JHPL": "Palamu", |
|
200 |
"UPEW": "Etawah", |
|
201 |
"UPKU": "Kushinagar", |
|
202 |
"UPKS": "Kaushambi", |
|
203 |
"BRSH": "Saharsa", |
|
204 |
"UPKD": "Kanpur Dehat", |
|
205 |
"PBPA": "Patiala", |
|
206 |
"UPKN": "Kanpur Nagar", |
|
207 |
"BRSM": "Samastipur", |
|
208 |
"UPVA": "Varanasi", |
|
209 |
"UPKJ": "Kannauj", |
|
210 |
"APCH": "Chittoor", |
|
211 |
"HRRE": "Rewari", |
|
212 |
"NLZU": "Zunheboto", |
|
213 |
"BRBU": "Buxar", |
|
214 |
"HRRO": "Rohtak", |
|
215 |
"TNCH": "Chennai", |
|
216 |
"BRBJ": "Bhojpur", |
|
217 |
"UATG": "Tehri Garhwal", |
|
218 |
"BRBG": "Bhagalpur", |
|
219 |
"BRBE": "Begusarai", |
|
220 |
"BRBA": "Banka", |
|
221 |
"MHHI": "Hingoli", |
|
222 |
"UPJP": "Jyotiba Phule Nagar", |
|
223 |
"GJBR": "Bharuch", |
|
224 |
"GJBV": "Bhavnagar", |
|
225 |
"GJBK": "Banaskantha", |
|
226 |
"TRST": "South Tripura", |
|
227 |
"GANG": "North Goa", |
|
228 |
"ORPU": "Puri", |
|
229 |
"KACK": "Chikballapur District", |
|
230 |
"UPSO": "Sonbhadra", |
|
231 |
"HRMW": "Mewat", |
|
232 |
"RJTO": "Tonk", |
|
233 |
"NLDI": "Dimapur", |
|
234 |
"HRMA": "Mahendragarh", |
|
235 |
"UPSK": "Sant Kabir Nagar", |
|
236 |
"MZCH": "Champhai", |
|
237 |
"BRLA": "Lakhisarai", |
|
238 |
"UPJH": "Jhansi", |
|
239 |
"ARAJ": "Anjaw", |
|
240 |
"UAUS": "Udham Singh Nagar", |
|
241 |
"UPRB": "Rae Bareli", |
|
242 |
"UAUT": "Uttarkashi", |
|
243 |
"ASTI": "Tinsukia", |
|
244 |
"KLKL": "Kollam", |
|
245 |
"KLKN": "Kannur", |
|
246 |
"KLKS": "Kasaragod", |
|
247 |
"KLKT": "Kottayam", |
|
248 |
"KLKZ": "Kozhikode", |
|
249 |
"MHBI": "Beed", |
|
250 |
"MPHA": "Harda", |
|
251 |
"MHBH": "Bhandara", |
|
252 |
"MHST": "Satara", |
|
253 |
"MPHO": "Hoshangabad", |
|
254 |
"MHSN": "Sangli", |
|
255 |
"MHSO": "Solapur", |
|
256 |
"ASBA": "Barpeta", |
|
257 |
"KASH": "Shimoga District", |
|
258 |
"MHSI": "Sindhudurg", |
|
259 |
"ASBO": "Bongaigaon", |
|
260 |
"MZLU": "Lunglei", |
|
261 |
"MPCT": "Chhatarpur", |
|
262 |
"BRKI": "Kishanganj", |
|
263 |
"BRKH": "Khagaria", |
|
264 |
"HPSO": "Solan", |
|
265 |
"KLTV": "Thiruvananthapuram", |
|
266 |
"BRKM": "Kaimur", |
|
267 |
"HPSH": "Shimla", |
|
268 |
"KLTS": "Thrissur", |
|
269 |
"MNCC": "Churachandpur", |
|
270 |
"ORBH": "Bhadrak", |
|
271 |
"MZLA": "Lawngtlai", |
|
272 |
"BRKT": "Katihar", |
|
273 |
"ORJH": "Jharsuguda", |
|
274 |
"MPCN": "Chhindwara", |
|
275 |
"APCU": "Kadapa", |
|
276 |
"ORBD": "Boudh (Bauda)", |
|
277 |
"PYKA": "Karaikal", |
|
278 |
"UPGZ": "Ghaziabad", |
|
279 |
"UPGR": "Gorkakhpur", |
|
280 |
"UPGP": "Ghazipur", |
|
281 |
"GASG": "South Goa", |
|
282 |
"JHCH": "Chatra", |
|
283 |
"MHOS": "Osmanabad", |
|
284 |
"UPGN": "Gonda", |
|
285 |
"GJAH": "Ahmedabad", |
|
286 |
"WBNA": "Nadia", |
|
287 |
"GJAM": "Amreli District", |
|
288 |
"GJAN": "Anand", |
|
289 |
"JKBR": "Baramula", |
|
290 |
"APGU": "Guntur", |
|
291 |
"ASMA": "Marigaon", |
|
292 |
"JKBD": "Badgam", |
|
293 |
"WBUD": "Uttar Dinajpur", |
|
294 |
"TNSI": "Sivagangai", |
|
295 |
"TNSA": "Salem", |
|
296 |
"MHDH": "Dhule", |
|
297 |
"PBNS": "Nawan Shehar", |
|
298 |
"PBGU": "Gurdaspur", |
|
299 |
"ARWK": "West Kameng", |
|
300 |
"RJPA": "Pali", |
|
301 |
"UPAG": "Agra", |
|
302 |
"WBBI": "Birbhum", |
|
303 |
"RJPG": "Pratapgarh", |
|
304 |
"JKPO": "Poonch", |
|
305 |
"KLPL": "Palakkad", |
|
306 |
"APPR": "Prakasam", |
|
307 |
"KLPT": "Pathanamthitta", |
|
308 |
"TNAY": "Ariyalur", |
|
309 |
"JKPU": "Pulwama", |
|
310 |
"RJBW": "Bhilwara", |
|
311 |
"RJBN": "Banswara", |
|
312 |
"AREL": "Lohit", |
|
313 |
"RJBM": "Barmer", |
|
314 |
"AREK": "East Kameng", |
|
315 |
"RJBI": "Bikaner", |
|
316 |
"ORCU": "Cuttack", |
|
317 |
"RJBU": "Bundi", |
|
318 |
"RJBR": "Baran", |
|
319 |
"KLWA": "Wayanad", |
|
320 |
"RJBP": "Bharatpur", |
|
321 |
"MHYA": "Yavatmal", |
|
322 |
"ORAN": "Angul", |
|
323 |
"UPAU": "Auraiya", |
|
324 |
"WBMA": "Malda", |
|
325 |
"MPTI": "Tikamgarh", |
|
326 |
"GJSN": "Surendranagar", |
|
327 |
"APNE": "Nellore", |
|
328 |
"GJSK": "Sabarkantha", |
|
329 |
"APNI": "Nizamabad", |
|
330 |
"DLSW": "South West Delhi", |
|
331 |
"BRGA": "Gaya", |
|
332 |
"DLSD": "South Delhi", |
|
333 |
"GJST": "Surat", |
|
334 |
"UPBD": "Badaun", |
|
335 |
"ORSO": "Subarnapur (Sonepur)", |
|
336 |
"JHGI": "Giridih", |
|
337 |
"JHGO": "Godda", |
|
338 |
"WBHR": "Howrah", |
|
339 |
"TNTJ": "Thanjavur", |
|
340 |
"TNTK": "Thoothukudi", |
|
341 |
"JHGA": "Garhwa", |
|
342 |
"TNTI": "Tirunelveli", |
|
343 |
"TNTL": "Thiruvallur", |
|
344 |
"ORSA": "Sambalpur", |
|
345 |
"KLER": "Ernakulam", |
|
346 |
"TNKK": "Kanyakumari", |
|
347 |
"TNTP": "Tiruppur", |
|
348 |
"TNTV": "Tiruvannamalai", |
|
349 |
"WBMU": "Murshidabad", |
|
350 |
"MHKO": "Kolhapur", |
|
351 |
"ORSU": "Sundargarh (Sundergarh)", |
|
352 |
"UPBG": "Bagpat", |
|
353 |
"JHGU": "Gumla", |
|
354 |
"SKNS": "North Sikkim", |
|
355 |
"RJUD": "Udaipur", |
|
356 |
"TRDH": "Dhalai", |
|
357 |
"MLEG": "East Garo Hills", |
|
358 |
"UPCD": "Chandauli", |
|
359 |
"HRJH": "Jhajjar", |
|
360 |
"HRJI": "Jind", |
|
361 |
"MLSG": "South Garo Hills", |
|
362 |
"DLCD": "Central Delhi", |
|
363 |
"UPCT": "Chitrakoot", |
|
364 |
"MNUK": "Ukhrul", |
|
365 |
"DLED": "East Delhi", |
|
366 |
"PBJA": "Jalandhar", |
|
367 |
"CGRN": "Rajnandgaon", |
|
368 |
"PYYA": "Yanam", |
|
369 |
"KABG": "Belgaum District", |
|
370 |
"KABD": "Bidar District", |
|
371 |
"KABJ": "Bijapur District", |
|
372 |
"KABK": "Bagalkot District", |
|
373 |
"CGRG": "Raigarh", |
|
374 |
"KABN": "Bangalore Urban district", |
|
375 |
"KABL": "Bellary District", |
|
376 |
"KABR": "Bangalore Rural District", |
|
377 |
"UPPR": "Pratapgarh", |
|
378 |
"CGRP": "Raipur", |
|
379 |
"TNTC": "Tiruchirappalli", |
|
380 |
"UPME": "Meerut", |
|
381 |
"MLEK": "East Khasi Hills", |
|
382 |
"DLWD": "West Delhi", |
|
383 |
"UPMB": "Mau", |
|
384 |
"UPMO": "Moradabad", |
|
385 |
"UPMH": "Mahoba", |
|
386 |
"KATU": "Tumkur District", |
|
387 |
"MPKA": "Katni", |
|
388 |
"UPMT": "Mathura", |
|
389 |
"UPMU": "Muzaffarnagar", |
|
390 |
"TNMA": "Madurai", |
|
391 |
"JKLE": "Leh", |
|
392 |
"APMA": "Mahbubnagar", |
|
393 |
"ASCA": "Cachar", |
|
394 |
"APME": "Medak", |
|
395 |
"MHRG": "Raigad", |
|
396 |
"MPBP": "Bhopal", |
|
397 |
"MPBR": "Barwani", |
|
398 |
"MNBI": "Bishnupur", |
|
399 |
"GJVL": "Valsad", |
|
400 |
"NLPH": "Phek", |
|
401 |
"RJNA": "Nagaur", |
|
402 |
"BRDA": "Darbhanga", |
|
403 |
"MPBE": "Betul", |
|
404 |
"MPBD": "Bhind", |
|
405 |
"PBLU": "Ludhiana", |
|
406 |
"MPBL": "Balaghat", |
|
407 |
"MZKO": "Kolasib", |
|
408 |
"APNA": "Nalgonda", |
|
409 |
"HPBI": "Bilaspur", |
|
410 |
"UPJU": "Jaunpur District", |
|
411 |
"GJDG": "The Dangs", |
|
412 |
"GJDA": "Dahod", |
|
413 |
"WBHG": "Hooghly", |
|
414 |
"NLWO": "Wokha", |
|
415 |
"MPPA": "Panna", |
|
416 |
"UPJL": "Jalaun", |
|
417 |
"ASJO": "Jorhat", |
|
418 |
"WBKO": "Kolkata", |
|
419 |
"HPKU": "Kulu", |
|
420 |
"HRSI": "Sirsa", |
|
421 |
"MLJH": "Jaintia Hills", |
|
422 |
"HPKI": "Kinnaur", |
|
423 |
"UADD": "Dehradun", |
|
424 |
"UACP": "Champawat", |
|
425 |
"HPKA": "Kangra", |
|
426 |
"TNPU": "Pudukkottai", |
|
427 |
"JHKO": "Koderma", |
|
428 |
"UPRA": "Rampur", |
|
429 |
"TNPE": "Perambalur", |
|
430 |
"HRAM": "Ambala", |
|
431 |
"MHGO": "Gondiya", |
|
432 |
"KLAL": "Alappuzha", |
|
433 |
"MHGA": "Gadchiroli", |
|
434 |
"KAMA": "Mandya District", |
|
435 |
"BRMP": "Madhepura", |
|
436 |
"BRMZ": "Muzaffarpur", |
|
437 |
"BRMG": "Munger", |
|
438 |
"JKSR": "Samba", |
|
439 |
"BRMB": "Madhubani", |
|
440 |
"KAMY": "Mysore District", |
|
441 |
"RJGA": "Ganganagar", |
|
442 |
"BRGO": "Gopalganj", |
|
443 |
"ORDH": "Dhenkanal", |
|
444 |
"MPEN": "Khandwa (East Nimar)", |
|
445 |
"JHRA": "Ranchi", |
|
446 |
"JHRM": "Ramgarh District", |
|
447 |
"BRVA": "Vaishali", |
|
448 |
"HPLS": "Lahaul and Spiti", |
|
449 |
"GJKA": "Kutch", |
|
450 |
"UARP": "Rudraprayag", |
|
451 |
"GJKH": "Kheda", |
|
452 |
"MPSI": "Sidhi", |
|
453 |
"MPWN": "Khargone (West Nimar)", |
|
454 |
"PBRU": "Rupnagar", |
|
455 |
"MNSE": "Senapati", |
|
456 |
"APAN": "Anantapur", |
|
457 |
"NLTU": "Tuensang", |
|
458 |
"CGJA": "Jashpur", |
|
459 |
"ASGG": "Golaghat", |
|
460 |
"CGJC": "Janjgir-Champa", |
|
461 |
"APAD": "Adilabad", |
|
462 |
"RJJW": "Jhalawar", |
|
463 |
"UPMI": "Mirzapur", |
|
464 |
"RJJS": "Jaisalmer", |
|
465 |
"RJJP": "Jaipur", |
|
466 |
"ASGP": "Goalpara", |
|
467 |
"RJJL": "Jalore", |
|
468 |
"RJJJ": "Juhnjhunun", |
|
469 |
"HPHA": "Hamirpur", |
|
470 |
"MPSR": "Sehore", |
|
471 |
"TNTH": "Theni", |
|
472 |
"MLWG": "West Garo Hills", |
|
473 |
"CGDH": "Dhamtari", |
|
474 |
"MHND": "Nanded", |
|
475 |
"MHNG": "Nagpur", |
|
476 |
"MLWK": "West Khasi Hills", |
|
477 |
"CGDA": "Dantewada", |
|
478 |
"HRFT": "Fatehabad", |
|
479 |
"CGDU": "Durg", |
|
480 |
"HRFR": "Faridabad", |
|
481 |
"TNTR": "Thiruvarur", |
|
482 |
"UPFI": "Firozabad", |
|
483 |
"JKAN": "Anantnag", |
|
484 |
"UPFT": "Fatehpur", |
|
485 |
"ASNL": "Nalbari", |
|
486 |
"APKA": "Karimnagar", |
|
487 |
"HRPP": "Panipat", |
|
488 |
"UPFR": "Farrukhabad", |
|
489 |
"ASNG": "Nagaon", |
|
490 |
"ASNC": "North Cachar Hills", |
|
491 |
"UPFZ": "Faizabad", |
|
492 |
"MNTH": "Thoubal", |
|
493 |
"WBPN": "North 24 Parganas", |
|
494 |
"TRWT": "West Tripura", |
|
495 |
"MNTA": "Tamenglong", |
|
496 |
"PBKA": "Kapurthala", |
|
497 |
"RJDA": "Dausa", |
|
498 |
"WBPS": "South 24 Parganas", |
|
499 |
"UPPI": "Pilibhit", |
|
500 |
"KLMA": "Malappuram", |
|
501 |
"ARCH": "Changlang", |
|
502 |
"WBPU": "Purulia", |
|
503 |
"MHCH": "Chandrapur", |
|
504 |
"KACJ": "Chamarajnagar District", |
|
505 |
"ORKN": "Kandhamal", |
|
506 |
"ORKO": "Koraput", |
|
507 |
"ORKL": "Kalahandi", |
|
508 |
"ORKJ": "Kendujhar (Keonjhar)", |
|
509 |
"ORKH": "Khordha", |
|
510 |
"NLMK": "Mokokchung", |
|
511 |
"ORKP": "Kendrapara", |
|
512 |
"NLMN": "Mon", |
|
513 |
"KACT": "Chitradurga District", |
|
514 |
"CGSU": "Surguja", |
|
515 |
"MPNE": "Neemuch", |
|
516 |
"TNNM": "Namakkal", |
|
517 |
"MPNA": "Narsinghpur", |
|
518 |
"TNNI": "The Nilgiris", |
|
519 |
"TNNG": "Nagapattinam", |
|
520 |
"APHY": "Hyderabad", |
|
521 |
"UANA": "Nainital", |
|
522 |
"APSR": "Srikakulam", |
|
523 |
"RJCR": "Churu", |
|
524 |
"RJCT": "Chittorgarh", |
|
525 |
"MZMA": "Mamit", |
|
526 |
"MHMC": "Mumbai City", |
|
527 |
"UPET": "Etah", |
|
528 |
"GJGA": "Gandhinagar", |
|
529 |
"MHMU": "Mumbai suburban", |
|
530 |
"WBKB": "Cooch Behar", |
|
531 |
"HPCH": "Chamba", |
|
532 |
"MPSG": "Sagar", |
|
533 |
"HRPK": "Panchkula", |
|
534 |
"ASKR": "Karimganj", |
|
535 |
"MPSO": "Seoni", |
|
536 |
"GJNV": "Navsari", |
|
537 |
"MPSJ": "Shajapur", |
|
538 |
"MPSH": "Shahdol", |
|
539 |
"GJNR": "Narmada", |
|
540 |
"MPSV": "Shivpuri", |
|
541 |
"MPST": "Satna", |
|
542 |
"ASKA": "Karbi Anglong", |
|
543 |
"MPSP": "Sheopur", |
|
544 |
"APEG": "East Godavari", |
|
545 |
"HRPW": "Palwal", |
|
546 |
"JKDO": "Doda", |
|
547 |
"ASKK": "Kokrajhar", |
|
548 |
"JHDU": "Dumka", |
|
549 |
"ORRA": "Rayagada", |
|
550 |
"JHDE": "Deoghar", |
|
551 |
"MHJG": "Jalgaon", |
|
552 |
"HRBH": "Bhiwani", |
|
553 |
"TNDH": "Dharmapuri", |
|
554 |
"JHDH": "Dhanbad", |
|
555 |
"MHJN": "Jalna", |
|
556 |
"UPBI": "Bijnor", |
|
557 |
"UPBH": "Bahraich", |
|
558 |
"UPBL": "Ballia", |
|
559 |
"UPBN": "Banda District", |
|
560 |
"HRKR": "Karnal", |
|
561 |
"UPBB": "Barabanki", |
|
562 |
"MZSE": "Serchhip", |
|
563 |
"HRKU": "Kurukshetra", |
|
564 |
"HRKT": "Kaithal", |
|
565 |
"MNCD": "Chandel", |
|
566 |
"MZSA": "Saiha", |
|
567 |
"UPBP": "Balrampur", |
|
568 |
"UPBS": "Basti", |
|
569 |
"UPBR": "Bareilly", |
|
570 |
"UPBU": "Bulandshahr", |
|
571 |
"MLRB": "Ri-Bhoi", |
|
572 |
"JKRA": "Rajauri", |
|
573 |
"ORBR": "Bargarh (Baragarh)", |
|
574 |
"BRNW": "Nawada", |
|
575 |
"MHTH": "Thane", |
|
576 |
"HPSI": "Sirmaur", |
|
577 |
"RJDU": "Dungapur", |
|
578 |
"APWA": "Warangal", |
|
579 |
"ORBW": "Baleswar (Balasore)", |
|
580 |
"TNER": "Erode", |
|
581 |
"BRNL": "Nalanda", |
|
582 |
"MPDE": "Dewas", |
|
583 |
"KAGU": "Gulbarga District", |
|
584 |
"TRNT": "North Tripura", |
|
585 |
"KLID": "Idukki", |
|
586 |
"MPDI": "Dindori", |
|
587 |
"MPDH": "Dhar", |
|
588 |
"KAGA": "Gadag District", |
|
589 |
"MPDT": "Datia", |
|
590 |
"JHSA": "Sahibganj", |
|
591 |
"ORGP": "Gajapati", |
|
592 |
"UAPG": "Pauri Garhwal", |
|
593 |
"ORBL": "Bolangir (Balangir)", |
|
594 |
"MPJH": "Jhabua", |
|
595 |
"UPLA": "Lalitpur", |
|
596 |
"MPJA": "Jabalpur", |
|
597 |
"JKKR": "Kargil", |
|
598 |
"JKKT": "Kathua", |
|
599 |
"JKKU": "Kupwara", |
|
600 |
"WBBN": "Bankura", |
|
601 |
"KAUK": "Uttara Kannada", |
|
602 |
"ASDI": "Dibrugarh", |
|
603 |
"UPLU": "Lucknow", |
|
604 |
"WBBR": "Bardhaman", |
|
605 |
"ASDM": "Dhemaji", |
|
606 |
"ASDA": "Darrang", |
|
607 |
"ASDB": "Dhubri", |
|
608 |
"HRYN": "Yamuna Nagar", |
|
609 |
"BREC": "Purba Champaran", |
|
610 |
"UABA": "Bageshwar", |
|
611 |
"TNCU": "Cuddalore", |
|
612 |
"MPMS": "Mandsaur", |
|
613 |
"MPML": "Mandla", |
|
614 |
"GJRA": "Rajkot", |
|
615 |
"MPMO": "Morena", |
|
616 |
"TNCO": "Coimbatore", |
|
617 |
"GJJU": "Junagadh", |
|
618 |
"TNVE": "Vellore", |
|
619 |
"TNVL": "Villupuram", |
|
620 |
"UPHR": "Hardoi", |
|
621 |
"ORDE": "Debagarh (Deogarh)", |
|
622 |
"HRGU": "Gurgaon", |
|
623 |
"RJJO": "Jodhpur", |
|
624 |
"UPAH": "Allahabad", |
|
625 |
"UPAL": "Aligarh", |
|
626 |
"UPAN": "Ambedkar Nagar", |
|
627 |
"CGBI": "Bilaspur", |
|
628 |
"APWG": "West Godavari", |
|
629 |
"UPAZ": "Azamgarh", |
|
630 |
"CGBA": "Bastar", |
|
631 |
"ORNY": "Nayagarh", |
|
632 |
"BRWC": "Pashchim Champaran", |
|
633 |
"ORNU": "Nuapada", |
|
634 |
"MNWI": "Imphal West", |
|
635 |
"UAAL": "Almora", |
|
636 |
"JHHA": "Hazaribagh", |
|
637 |
"ORNB": "Nabarangpur", |
|
638 |
"ARUD": "Dibang Valley", |
|
639 |
"ARUB": "Upper Subansiri", |
|
640 |
"RJRA": "Rajsamand", |
|
641 |
"APKR": "Krishna", |
|
642 |
"MHPU": "Pune", |
|
643 |
"APKU": "Kurnool", |
|
644 |
"MPIN": "Indore", |
|
645 |
"ASHA": "Hailakandi", |
|
646 |
"UPGB": "Gautam Buddha Nagar", |
|
647 |
"MHPA": "Parbhani", |
|
648 |
"KARA": "Raichur District", |
|
649 |
"SKWS": "West Sikkim", |
|
650 |
"APKH": "Khammam", |
|
651 |
"KARM": "Ramanagara District", |
|
652 |
"DLNO": "North Delhi", |
|
653 |
"BRJE": "Jehanabad", |
|
654 |
"BRJA": "Jamui", |
|
655 |
"JHWS": "Pashchim Singhbhum", |
|
656 |
"DLND": "New Delhi", |
|
657 |
"DLNE": "North East Delhi", |
|
658 |
"DLNW": "North West Delhi", |
|
659 |
"RJDH": "Dholpur", |
|
660 |
"TNDI": "Dindigul", |
|
661 |
"JKUD": "Udhampur", |
|
662 |
"GJJA": "Jamnagar", |
|
663 |
"UPHM": "Hamirpur", |
|
664 |
"PBSA": "Sangrur", |
|
665 |
"MPVI": "Vidisha", |
|
666 |
"ORGN": "Ganjam", |
|
667 |
"MHNB": "Nandurbar", |
|
668 |
"UPHT": "Mahamaya Nagar", |
|
669 |
"BRAR": "Araria", |
|
670 |
"JKBP": "Bandipore", |
|
671 |
"CGKB": "Korba", |
|
672 |
"BRAU": "Aurangabad", |
|
673 |
"CGKK": "Kanker", |
|
674 |
"CGKJ": "Koriya", |
|
675 |
"CGKW": "Kawardha", |
|
676 |
"UAHA": "Haridwar", |
|
677 |
"GJMA": "Mehsana", |
|
678 |
"RJKO": "Kota", |
|
679 |
"MNEI": "Imphal East", |
|
680 |
"RJKA": "Karauli", |
|
681 |
"ARLB": "Lower Subansiri", |
|
682 |
"MPDM": "Damoh" |
|
683 |
} |
|
0 | 684 |
|
685 |
# Field containing the Line Item to which the project belongs to. |
|
686 |
line_item = models.CharField(max_length=256, |
|
35
c64531b3afb4
Added settings.py to .hgignore.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
32
diff
changeset
|
687 |
choices=dict_tuple(LINE_ITEM_CHOICES)) |
24
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
688 |
line_item.help_text = 'Select from one of the Line Items.' |
0 | 689 |
|
690 |
# Field containing the name of the institution working on the |
|
691 |
# project. |
|
692 |
institution = models.CharField(max_length=256) |
|
24
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
693 |
institution.help_text = 'Give the full name of your institution.' |
0 | 694 |
|
695 |
# Field containing the state to which the institution belongs to. |
|
22 | 696 |
state = models.CharField( |
697 |
max_length=256, |
|
698 |
choices=sorted(STATE_CHOICES.items(), key=lambda (k,v): (v,k))) |
|
24
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
699 |
state.help_text = 'Select the state in which this project is taken up.' |
18
05b9e60e6a10
Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
16
diff
changeset
|
700 |
|
0 | 701 |
# Field containing the district to which the institution belongs |
702 |
# to in the state of India. |
|
703 |
district = models.CharField(max_length=256, |
|
22 | 704 |
choices=sort_dict(DISTRICT_CHOICES)) |
24
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
705 |
district.help_text = ('First select the state before selecting the district. ' |
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
706 |
'Select the district of the state where this project is taken up.') |
19 | 707 |
|
708 |
mobile_num = models.CharField(max_length=20) |
|
24
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
709 |
mobile_num.help_text = 'Enter your mobile number.' |
19 | 710 |
|
711 |
fax_num = models.CharField(max_length=20, null=True, blank=True) |
|
24
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
712 |
fax_num.help_text = 'Enter your fax number with the code.' |
0 | 713 |
|
714 |
# Field containing the autogenerated MICR code for the project. |
|
715 |
micr_code = models.CharField(max_length=15, unique=True) |
|
716 |
||
717 |
# Field containing the status of the project. |
|
718 |
# status of the project can be one among the following |
|
719 |
# New, Revised, Funded, Pilot, DPE |
|
720 |
status = models.CharField(max_length=256, |
|
4
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
721 |
choices=[('new', 'New'), ('pilot', 'Pilot'), |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
722 |
('invalid', 'Invalid')]) |
0 | 723 |
|
16
bed14c9685a5
Project model changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
4
diff
changeset
|
724 |
last_updated_on = models.DateTimeField(auto_now=True) |
bed14c9685a5
Project model changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
4
diff
changeset
|
725 |
|
0 | 726 |
@classmethod |
727 |
def getLineItem(cls, code): |
|
728 |
"""Get the State name from its code. |
|
729 |
""" |
|
730 |
||
21
153db75bb515
Changed data models to all new data.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
19
diff
changeset
|
731 |
return cls.LINE_ITEM_CHOICES[code] |
0 | 732 |
|
733 |
@classmethod |
|
4
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
734 |
def getLineItemCode(cls, name): |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
735 |
"""Get the Line Item code from its name. |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
736 |
""" |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
737 |
|
21
153db75bb515
Changed data models to all new data.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
19
diff
changeset
|
738 |
for ln_code in cls.LINE_ITEM_CHOICES: |
153db75bb515
Changed data models to all new data.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
19
diff
changeset
|
739 |
if cls.LINE_ITEM_CHOICES[ln_code] == name: |
4
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
740 |
return ln_code |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
741 |
|
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
742 |
return None |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
743 |
|
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
744 |
@classmethod |
0 | 745 |
def getState(cls, code): |
4
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
746 |
"""Get the State code from its name. |
0 | 747 |
""" |
748 |
||
21
153db75bb515
Changed data models to all new data.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
19
diff
changeset
|
749 |
return cls.STATE_CHOICES[code] |
0 | 750 |
|
751 |
@classmethod |
|
4
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
752 |
def getStateCode(cls, name): |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
753 |
"""Get the State code from its name. |
0 | 754 |
""" |
755 |
||
21
153db75bb515
Changed data models to all new data.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
19
diff
changeset
|
756 |
for st_code in cls.STATE_CHOICES: |
153db75bb515
Changed data models to all new data.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
19
diff
changeset
|
757 |
if cls.STATE_CHOICES[st_code] == name: |
4
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
758 |
return st_code |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
759 |
|
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
760 |
return None |
0 | 761 |
|
762 |
@classmethod |
|
763 |
def getDistrict(cls, code): |
|
4
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
764 |
"""Get the District name from its code. |
0 | 765 |
""" |
766 |
||
21
153db75bb515
Changed data models to all new data.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
19
diff
changeset
|
767 |
return cls.DISTRICT_CHOICES[code] |
0 | 768 |
|
4
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
769 |
@classmethod |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
770 |
def getDistrictCode(cls, name): |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
771 |
"""Get the District code from its name. |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
772 |
""" |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
773 |
|
21
153db75bb515
Changed data models to all new data.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
19
diff
changeset
|
774 |
for dt_code in cls.DISTRICT_CHOICES: |
153db75bb515
Changed data models to all new data.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
19
diff
changeset
|
775 |
if cls.DISTRICT_CHOICES[dt_code] == name: |
4
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
776 |
return dt_code |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
777 |
|
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
778 |
return None |
8d9da911ed7d
Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
0
diff
changeset
|
779 |
|
0 | 780 |
class Proposal(models.Model): |
781 |
"""Model class for the project's proposal. |
|
782 |
""" |
|
783 |
||
784 |
#: Field representing the relation to the corresponding project. |
|
785 |
project = models.ForeignKey(Project) |
|
786 |
||
787 |
#: Field containing the Line Item to which the project belongs to. |
|
788 |
document = models.FileField(upload_to='proposals/%Y/%m/%d') |
|
24
7257b66a6766
Purr implemented for submit form.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
23
diff
changeset
|
789 |
document.help_text = 'Select the document path from your local file system.' |
0 | 790 |
|
791 |
#: Field containing the date on which the document was submitted |
|
792 |
submitted_on = models.DateTimeField(auto_now_add=True) |
|
793 |
||
794 |
#: Field containing the reference to the user who submitted the proposal. |
|
795 |
submitted_by = models.ForeignKey(User, null=True) |
|
796 |
||
797 |
#: Field containing the revision number of the proposal belonging to |
|
798 |
#: the Project. |
|
799 |
rev_num = models.PositiveIntegerField() |
|
800 |
||
801 |
||
802 |
class Timeline(models.Model): |
|
803 |
"""Model class for the project's timeline. |
|
804 |
""" |
|
805 |
||
806 |
#: Field representing the relation to the corresponding project. |
|
807 |
project = models.ForeignKey(Project) |
|
808 |
||
809 |
#: Field containing the date and time of submission of proposal. |
|
810 |
submitted = models.DateTimeField() |
|
811 |
||
812 |
#: Field containing the last date and time of review of proposal. |
|
813 |
reviewed = models.DateTimeField() |
|
814 |
||
815 |
#: Field containing the date and time of amount paid for the project. |
|
816 |
amount_paid = models.DateTimeField() |
|
817 |
||
818 |
#: Field containing the date and time of presentation of the project. |
|
819 |
presentation = models.DateTimeField() |
|
820 |
||
821 |
#: Field containing the date and time of monitoring of the project. |
|
822 |
monitoring = models.DateTimeField() |
|
823 |
||
824 |
||
825 |
class Fund(models.Model): |
|
826 |
"""Model class for the project's funds. |
|
827 |
""" |
|
828 |
||
829 |
#: Field representing the relation to the corresponding project. |
|
830 |
project = models.ForeignKey(Project) |
|
831 |
||
832 |
#: Field containing the amount sanctioned as funds for the project. |
|
833 |
sanctioned = models.FloatField() |
|
834 |
||
835 |
#: Field containing the expenses for the sanctioned fund for |
|
836 |
#: the project. |
|
837 |
expenses = models.FloatField() |
|
838 |
||
839 |
#: Field containing the date and time on which the funds were |
|
840 |
#: sanctioned for the project. |
|
841 |
sanctioned_on = models.DateTimeField(auto_now_add=True) |
|
842 |
||
843 |
||
844 |
class Review(models.Model): |
|
845 |
"""Model class for the project's proposal's review. |
|
846 |
""" |
|
847 |
||
848 |
#: Field representing the relation to the corresponding project. |
|
849 |
project = models.ForeignKey(Project) |
|
850 |
||
851 |
#: Field containing the comment entered along with the review. |
|
852 |
comment = models.TextField() |
|
28
be65e84e7d03
Added star-plugin files.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
26
diff
changeset
|
853 |
comment.help_text = "Enter your review comment about this proposal." |
0 | 854 |
|
855 |
#: Field representing the reference to the person who |
|
856 |
#: did the review. |
|
857 |
reviewer = models.ForeignKey(User, null=True) |
|
858 |
||
859 |
#: Field containing the date and time of review of the proposal. |
|
26
97bd3c28c957
Renamed Comments to Reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
24
diff
changeset
|
860 |
reviewed_on = models.DateTimeField(auto_now=True) |
0 | 861 |
|
862 |
#: Field containing the review value for this attribute. |
|
863 |
attribute1 = models.PositiveSmallIntegerField( |
|
864 |
choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) |
|
36
a7c525ec281a
Added the nine attributes
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
35
diff
changeset
|
865 |
attribute1.verbose_name = 'Feasibility of the proposed activity and the ' |
a7c525ec281a
Added the nine attributes
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
35
diff
changeset
|
866 |
'appropriateness of the time frame.' |
0 | 867 |
|
868 |
attribute2 = models.PositiveSmallIntegerField( |
|
869 |
choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) |
|
36
a7c525ec281a
Added the nine attributes
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
35
diff
changeset
|
870 |
attribute1.verbose_name = 'Uniqueness/novelty/innovation of the said proposal' |
0 | 871 |
|
872 |
attribute3 = models.PositiveSmallIntegerField( |
|
873 |
choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) |
|
36
a7c525ec281a
Added the nine attributes
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
35
diff
changeset
|
874 |
attribute1.verbose_name = 'Scope for inter-institutional collaboration and ' |
a7c525ec281a
Added the nine attributes
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
35
diff
changeset
|
875 |
'development.' |
0 | 876 |
|
877 |
attribute4 = models.PositiveSmallIntegerField( |
|
878 |
choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) |
|
36
a7c525ec281a
Added the nine attributes
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
35
diff
changeset
|
879 |
attribute1.verbose_name = 'The organisation of the programme to be carried ' |
a7c525ec281a
Added the nine attributes
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
35
diff
changeset
|
880 |
'out.' |
0 | 881 |
|
882 |
attribute5 = models.PositiveSmallIntegerField( |
|
883 |
choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) |
|
36
a7c525ec281a
Added the nine attributes
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
35
diff
changeset
|
884 |
attribute1.verbose_name = 'The details of the work as the outlined by the ' |
a7c525ec281a
Added the nine attributes
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
35
diff
changeset
|
885 |
'principal investigator(PI).' |
0 | 886 |
|
887 |
attribute6 = models.PositiveSmallIntegerField( |
|
888 |
choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) |
|
36
a7c525ec281a
Added the nine attributes
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
35
diff
changeset
|
889 |
attribute1.verbose_name = 'Sufficiency of funds as requested by the PI.' |
0 | 890 |
|
891 |
attribute7 = models.PositiveSmallIntegerField( |
|
892 |
choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) |
|
36
a7c525ec281a
Added the nine attributes
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
35
diff
changeset
|
893 |
attribute1.verbose_name = 'Social impact/reach/spread of the outcome of the ' |
a7c525ec281a
Added the nine attributes
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
35
diff
changeset
|
894 |
'proposal.' |
0 | 895 |
|
896 |
attribute8 = models.PositiveSmallIntegerField( |
|
897 |
choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) |
|
36
a7c525ec281a
Added the nine attributes
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
35
diff
changeset
|
898 |
attribute1.verbose_name = 'Contribution of the proposal to minimizing the ' |
a7c525ec281a
Added the nine attributes
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
35
diff
changeset
|
899 |
'digital divide in our country.' |
0 | 900 |
|
901 |
attribute9 = models.PositiveSmallIntegerField( |
|
902 |
choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) |
|
36
a7c525ec281a
Added the nine attributes
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
35
diff
changeset
|
903 |
attribute1.verbose_name = 'Any other matter which is likely to affect the ' |
a7c525ec281a
Added the nine attributes
Santosh G. Vattam <vattam.santosh@gmail.com>
parents:
35
diff
changeset
|
904 |
'execution of the project(max 600 characters).' |