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