new file: projetCuf/__init__.py
[univ_ap.git] / cartographie / models.py
CommitLineData
25113635 1#-*- coding: utf-8 -*-
2from django.db import models
3import datetime
4from basemodel.models import Niveau
5import uuid
6# Create your models here.
7
8class Cartonews(models.Model):
9
10 def renommage(instance, nom):
11 return 'pdf/pdf_'+str(datetime.datetime.time(datetime.datetime.now())) +'.'+nom.split('.')[-1]
12
13 def renommage_img(instance, nom):
14 return 'images_upload/carto_'+str(datetime.datetime.time(datetime.datetime.now())) +'.'+nom.split('.')[-1]
15
16 def admin_img1(self):
17 if self.img1:
18 return u'<img src="%s" width="90" />' % (self.img1.url)
19 else:
20 return """(Pas d'image)"""
21
22 def chemin_img1(self):
23 if self.img1:
24 return u'/media/%s' % (self.img1)
25 else:
26 return """(Pas d'image)"""
27
28 def admin_img2(self):
29 if self.img2:
30 return u'<img src="%s" width="90" />' % (self.img2.url)
31 else:
32 return """(Pas d'image)"""
33 def chemin_img2(self):
34 if self.img2:
35 return u'/media/%s' % (self.img2)
36 else:
37 return """(Pas d'image)"""
38 def admin_img3(self):
39 if self.img3:
40 return u'<img src="%s" width="90" />' % (self.img3.url)
41 else:
42 return """(Pas d'image)"""
43 def chemin_img3(self):
44 if self.img3:
45 return u'/media/%s' % (self.img1)
46 else:
47 return """(Pas d'image)"""
48
49 PUBLICATION = (
50 (u'Publié', 'Publié'),
51 ('Brouillon', 'Brouillon'),
52 ('A valider', 'A valider'),
53 )
54
55 focus = models.BooleanField(default=0)
56 titre = models.CharField(max_length=255)
57 slug = models.SlugField(max_length=255)
58 statut = models.CharField(max_length="20", choices = PUBLICATION)
59 extrait_contenu = models.TextField()
60
61 contenu = models.TextField(null=True)
62 images = models.ImageField(upload_to="images_upload/", null = True, blank=True)
63 date_creation = models.DateTimeField(auto_now_add=True, auto_now=False, verbose_name="Date publication")
64 date_modification = models.DateTimeField(auto_now_add=True, auto_now=True, verbose_name="Date de modification")
65 lien_video = models.CharField(max_length = 500,null = True, blank=True,verbose_name="Lien vidéo")
66 pdf1 = models.FileField(upload_to=renommage, verbose_name="pdf1", null = True,blank= True)
67 pdf2 = models.FileField(upload_to=renommage, verbose_name="pdf2", null = True,blank= True)
68 img1 = models.ImageField(upload_to=renommage_img, null = True, blank=True)
69 img2 = models.ImageField(upload_to=renommage_img, null = True, blank=True)
70 img3 = models.ImageField(upload_to=renommage_img, null = True, blank=True)
71 admin_img1.short_description = 'Image1'
72 chemin_img1.short_description = "Chemin de l'image"
73 admin_img1.allow_tags = True
74 chemin_img1.allow_tags = True
75 admin_img2.short_description = 'Image2'
76 chemin_img2.short_description = "Chemin de l'image"
77 admin_img2.allow_tags = True
78 chemin_img2.allow_tags = True
79 admin_img3.short_description = 'Image3'
80 chemin_img3.short_description = "Chemin de l'image"
81 admin_img3.allow_tags = True
82 chemin_img3.allow_tags = True
83 user = models.CharField(max_length=100)
84
85 class Meta:
86 ordering = ["date_modification"]
87 verbose_name_plural = "News"
88
89 def __unicode__(self):
90 return self.titre
91
92#les infos en plus de site cartographie sont ici
93
94class CartoFormation(models.Model):
95
96
97 def renommage(instance, nom):
98# return 'pdf/pdf_'+str(int(round(datetime.datetime.time(datetime.datetime.now()) * 1000))) +'.'+nom.split('.')[-1]
99 return 'pdf/pdf_'+str(datetime.datetime.time(datetime.datetime.now())) +'.'+nom.split('.')[-1]
100
101 def renommage_img(instance, nom):
102# return 'images_upload/carto_'+str(int(round(datetime.datetime.time(datetime.datetime.now()) * 1000))) +'.'+nom.split('.')[-1]
103 return 'images_upload/carto_'+str(datetime.datetime.time(datetime.datetime.now())) +'.'+nom.split('.')[-1]
104
105
106#id de formation sur le site cartographie
107
108 M_UNIT = (
109 ('VND', 'VND'),
110 ('KIP', 'KIP'),
111 ('BAT', 'BAT'),
112 ('RIEN', 'RIEN'),
113 )
114
115
116 NOMBRE_ANNEES = (
117 (1, '1'),
118 (2, '2'),
119 (3, '3'),
120 (4, '4'),
121 (5, '5'),
122 (6, '6'),
123 )
124
125 M_LANGUE = (
126 ('Francais', 'Francais'),
127 ('Vietnamien', 'Vietnamien'),
128 ('Anglais', 'Anglais'),
129 )
130
131 carto_id = models.IntegerField()
132 nom = models.CharField(max_length = 100)
133 etablissement = models.CharField(max_length = 200, null = True, blank=True)
134 pays = models.CharField(max_length = 100, null = True, blank=True)
135 pdf1 = models.FileField(upload_to=renommage, verbose_name="pdf1", null = True,blank= True)
136# si il y a img1, on affiche cette image au lieu de nom de pdf1 pour qu'il soit plus jolie
137 img1 = models.ImageField(upload_to=renommage_img, null = True, blank=True)
138 nom_fichier1 = models.CharField(max_length = 100, null = True, blank=True)
139 pdf2 = models.FileField(upload_to=renommage, verbose_name="pdf2", null = True,blank= True)
140 img2 = models.ImageField(upload_to=renommage_img, null = True, blank=True)
141 nom_fichier2 = models.CharField(max_length = 100, null = True, blank=True)
142 pdf3 = models.FileField(upload_to=renommage, verbose_name="pdf3", null = True,blank= True)
143 img3 = models.ImageField(upload_to=renommage_img, null = True, blank=True)
144 nom_fichier3 = models.CharField(max_length = 100, null = True, blank=True)
145 pdf4 = models.FileField(upload_to=renommage, verbose_name="pdf4", null = True,blank= True)
146 img4 = models.ImageField(upload_to=renommage_img, null = True, blank=True)
147 nom_fichier4 = models.CharField(max_length = 100, null = True, blank=True)
148 pdf5 = models.FileField(upload_to=renommage, verbose_name="pdf5", null = True,blank= True)
149 img5 = models.ImageField(upload_to=renommage_img, null = True, blank=True)
150 nom_fichier5 = models.CharField(max_length = 100, null = True, blank=True)
151 html_libre = models.TextField(null = True,blank= True)
152 debouche = models.TextField(null = True,blank= True)
153 poursuite_etude = models.ForeignKey('basemodel.Niveau', null = True,blank= True)
154 secteur = models.CharField(max_length=100,null = True,blank= True)
155 type_emploi = models.CharField(max_length=100, null = True,blank= True)
156 frais_formation = models.CharField(max_length=100, null = True,blank= True)
157 frais_pays = models.CharField(max_length=100,verbose_name = u"",choices = M_UNIT, null = True, blank = True)
158 montant = models.CharField(max_length=100, null = True,blank= True)
159 montant_pays = models.CharField(max_length=100,verbose_name = u"",choices = M_UNIT, null = True, blank = True)
160 montant_usd = models.CharField(max_length=100, null = True,blank= True)
161 aide_national = models.TextField(null = True,blank= True)
162 aide_international = models.TextField(null = True,blank= True)
163 condition = models.TextField(null = True,blank= True)
164 formation_initiale = models.TextField(null = True,blank= True)
165 niveau_lang_fr = models.CharField(max_length=100, null = True,blank= True)
166 niveau_lang_autre = models.CharField(max_length=100, null = True,blank= True)
167 modalite_national = models.CharField(max_length=100, null = True,blank= True)
168 modalite_international = models.CharField(max_length=100, null = True,blank= True)
169 calendrier_an = models.CharField(max_length=20, null = True,blank= True)
170 date_inscription = models.CharField(max_length=50, null = True,blank= True)
171 date_selection = models.CharField(max_length=50, null = True,blank= True)
172 date_debut = models.CharField(max_length=50, null = True,blank= True)
173 date_fin = models.CharField(max_length=50, null = True,blank= True)
174 date_dyplome = models.CharField(max_length=50, null = True,blank= True)
175 duree_formation = models.IntegerField(null = True, blank = True)
176 an1_module1_nom = models.TextField( null = True,blank= True)
177 an1_module1_volume = models.CharField(max_length=20, null = True,blank= True)
178 an1_module1_credit = models.CharField(max_length=2, null = True,blank= True)
179 an1_module1_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
180 an1_module2_nom = models.TextField( null = True,blank= True)
181 an1_module2_volume = models.CharField(max_length=4, null = True,blank= True)
182 an1_module2_credit = models.CharField(max_length=2, null = True,blank= True)
183 an1_module2_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
184 an1_module3_nom = models.TextField( null = True,blank= True)
185 an1_module3_volume = models.CharField(max_length=4, null = True,blank= True)
186 an1_module3_credit = models.CharField(max_length=2, null = True,blank= True)
187 an1_module3_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
188 an1_module4_nom = models.TextField( null = True,blank= True)
189 an1_module4_volume = models.CharField(max_length=4, null = True,blank= True)
190 an1_module4_credit = models.CharField(max_length=2, null = True,blank= True)
191 an1_module4_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
192 an1_module5_nom = models.TextField( null = True,blank= True)
193 an1_module5_volume = models.CharField(max_length=4, null = True,blank= True)
194 an1_module5_credit = models.CharField(max_length=100, null = True,blank= True)
195 an1_module5_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
196 an1_module6_nom = models.TextField( null = True,blank= True)
197 an1_module6_volume = models.CharField(max_length=4, null = True,blank= True)
198 an1_module6_credit = models.CharField(max_length=2, null = True,blank= True)
199 an1_module6_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
200 an1_module7_nom = models.TextField( null = True,blank= True)
201 an1_module7_volume = models.CharField(max_length=4, null = True,blank= True)
202 an1_module7_credit = models.CharField(max_length=2, null = True,blank= True)
203 an1_module7_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
204 an1_module8_nom = models.TextField( null = True,blank= True)
205 an1_module8_volume = models.CharField(max_length=4, null = True,blank= True)
206 an1_module8_credit = models.CharField(max_length=2, null = True,blank= True)
207 an1_module8_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
208 an1_module9_nom = models.TextField( null = True,blank= True)
209 an1_module9_volume = models.CharField(max_length=4, null = True,blank= True)
210 an1_module9_credit = models.CharField(max_length=2, null = True,blank= True)
211 an1_module9_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
212 an1_module10_nom = models.TextField( null = True,blank= True)
213 an1_module10_volume = models.CharField(max_length=4, null = True,blank= True)
214 an1_module10_credit = models.CharField(max_length=2, null = True,blank= True)
215 an1_module10_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
216 an1_module11_nom = models.TextField( null = True,blank= True)
217 an1_module11_volume = models.CharField(max_length=4, null = True,blank= True)
218 an1_module11_credit = models.CharField(max_length=2, null = True,blank= True)
219 an1_module11_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
220 an1_module12_nom = models.TextField( null = True,blank= True)
221 an1_module12_volume = models.CharField(max_length=4, null = True,blank= True)
222 an1_module12_credit = models.CharField(max_length=2, null = True,blank= True)
223 an1_module12_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
224 an1_module13_nom = models.TextField( null = True,blank= True)
225 an1_module13_volume = models.CharField(max_length=4, null = True,blank= True)
226 an1_module13_credit = models.CharField(max_length=2, null = True,blank= True)
227 an1_module13_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
228 an1_module14_nom = models.TextField( null = True,blank= True)
229 an1_module14_volume = models.CharField(max_length=4, null = True,blank= True)
230 an1_module14_credit = models.CharField(max_length=2, null = True,blank= True)
231 an1_module14_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
232 an1_module15_nom = models.TextField( null = True,blank= True)
233 an1_module15_volume = models.CharField(max_length=4, null = True,blank= True)
234 an1_module15_credit = models.CharField(max_length=2, null = True,blank= True)
235 an1_module15_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
236 an1_module15_nom = models.TextField( null = True,blank= True)
237 an1_module15_volume = models.CharField(max_length=4, null = True,blank= True)
238 an1_module15_credit = models.CharField(max_length=2, null = True,blank= True)
239 an1_module15_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
240 an1_module16_nom = models.TextField( null = True,blank= True)
241 an1_module16_volume = models.CharField(max_length=4, null = True,blank= True)
242 an1_module16_credit = models.CharField(max_length=2, null = True,blank= True)
243 an1_module16_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
244 an1_module17_nom = models.TextField( null = True,blank= True)
245 an1_module17_volume = models.CharField(max_length=4, null = True,blank= True)
246 an1_module17_credit = models.CharField(max_length=2, null = True,blank= True)
247 an1_module17_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
248 an1_module18_nom = models.TextField( null = True,blank= True)
249 an1_module18_volume = models.CharField(max_length=4, null = True,blank= True)
250 an1_module18_credit = models.CharField(max_length=2, null = True,blank= True)
251 an1_module18_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
252 an1_module19_nom = models.TextField( null = True,blank= True)
253 an1_module19_volume = models.CharField(max_length=4, null = True,blank= True)
254 an1_module19_credit = models.CharField(max_length=2, null = True,blank= True)
255 an1_module19_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
256 an1_module20_nom = models.TextField( null = True,blank= True)
257 an1_module20_volume = models.CharField(max_length=4, null = True,blank= True)
258 an1_module20_credit = models.CharField(max_length=2, null = True,blank= True)
259 an1_module20_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
260 an1_module21_nom = models.TextField( null = True,blank= True)
261 an1_module21_volume = models.CharField(max_length=4, null = True,blank= True)
262 an1_module21_credit = models.CharField(max_length=2, null = True,blank= True)
263 an1_module21_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
264 an1_module22_nom = models.TextField( null = True,blank= True)
265 an1_module22_volume = models.CharField(max_length=4, null = True,blank= True)
266 an1_module22_credit = models.CharField(max_length=2, null = True,blank= True)
267 an1_module22_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
268
269 an2_module1_nom = models.TextField( null = True,blank= True)
270 an2_module1_volume = models.CharField(max_length=4, null = True,blank= True)
271 an2_module1_credit = models.CharField(max_length=2, null = True,blank= True)
272 an2_module1_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
273 an2_module2_nom = models.TextField( null = True,blank= True)
274 an2_module2_volume = models.CharField(max_length=4, null = True,blank= True)
275 an2_module2_credit = models.CharField(max_length=2, null = True,blank= True)
276 an2_module2_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
277 an2_module3_nom = models.TextField( null = True,blank= True)
278 an2_module3_volume = models.CharField(max_length=4, null = True,blank= True)
279 an2_module3_credit = models.CharField(max_length=2, null = True,blank= True)
280 an2_module3_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
281 an2_module4_nom = models.TextField( null = True,blank= True)
282 an2_module4_volume = models.CharField(max_length=4, null = True,blank= True)
283 an2_module4_credit = models.CharField(max_length=2, null = True,blank= True)
284 an2_module4_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
285 an2_module5_nom = models.TextField( null = True,blank= True)
286 an2_module5_volume = models.CharField(max_length=4, null = True,blank= True)
287 an2_module5_credit = models.CharField(max_length=100, null = True,blank= True)
288 an2_module5_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
289 an2_module6_nom = models.TextField( null = True,blank= True)
290 an2_module6_volume = models.CharField(max_length=4, null = True,blank= True)
291 an2_module6_credit = models.CharField(max_length=2, null = True,blank= True)
292 an2_module6_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
293 an2_module7_nom = models.TextField( null = True,blank= True)
294 an2_module7_volume = models.CharField(max_length=4, null = True,blank= True)
295 an2_module7_credit = models.CharField(max_length=2, null = True,blank= True)
296 an2_module7_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
297 an2_module8_nom = models.TextField( null = True,blank= True)
298 an2_module8_volume = models.CharField(max_length=4, null = True,blank= True)
299 an2_module8_credit = models.CharField(max_length=2, null = True,blank= True)
300 an2_module8_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
301 an2_module9_nom = models.TextField( null = True,blank= True)
302 an2_module9_volume = models.CharField(max_length=4, null = True,blank= True)
303 an2_module9_credit = models.CharField(max_length=2, null = True,blank= True)
304 an2_module9_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
305 an2_module10_nom = models.TextField( null = True,blank= True)
306 an2_module10_volume = models.CharField(max_length=4, null = True,blank= True)
307 an2_module10_credit = models.CharField(max_length=2, null = True,blank= True)
308 an2_module10_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
309 an2_module11_nom = models.TextField( null = True,blank= True)
310 an2_module11_volume = models.CharField(max_length=4, null = True,blank= True)
311 an2_module11_credit = models.CharField(max_length=2, null = True,blank= True)
312 an2_module11_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
313 an2_module12_nom = models.TextField( null = True,blank= True)
314 an2_module12_volume = models.CharField(max_length=4, null = True,blank= True)
315 an2_module12_credit = models.CharField(max_length=2, null = True,blank= True)
316 an2_module12_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
317 an2_module13_nom = models.TextField( null = True,blank= True)
318 an2_module13_volume = models.CharField(max_length=4, null = True,blank= True)
319 an2_module13_credit = models.CharField(max_length=2, null = True,blank= True)
320 an2_module13_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
321 an2_module14_nom = models.TextField( null = True,blank= True)
322 an2_module14_volume = models.CharField(max_length=4, null = True,blank= True)
323 an2_module14_credit = models.CharField(max_length=2, null = True,blank= True)
324 an2_module14_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
325 an2_module15_nom = models.TextField( null = True,blank= True)
326 an2_module15_volume = models.CharField(max_length=4, null = True,blank= True)
327 an2_module15_credit = models.CharField(max_length=2, null = True,blank= True)
328 an2_module15_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
329 an2_module15_nom = models.TextField( null = True,blank= True)
330 an2_module15_volume = models.CharField(max_length=4, null = True,blank= True)
331 an2_module15_credit = models.CharField(max_length=2, null = True,blank= True)
332 an2_module15_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
333 an2_module16_nom = models.TextField( null = True,blank= True)
334 an2_module16_volume = models.CharField(max_length=4, null = True,blank= True)
335 an2_module16_credit = models.CharField(max_length=2, null = True,blank= True)
336 an2_module16_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
337 an2_module17_nom = models.TextField( null = True,blank= True)
338 an2_module17_volume = models.CharField(max_length=4, null = True,blank= True)
339 an2_module17_credit = models.CharField(max_length=2, null = True,blank= True)
340 an2_module17_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
341 an2_module18_nom = models.TextField( null = True,blank= True)
342 an2_module18_volume = models.CharField(max_length=4, null = True,blank= True)
343 an2_module18_credit = models.CharField(max_length=2, null = True,blank= True)
344 an2_module18_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
345 an2_module19_nom = models.TextField( null = True,blank= True)
346 an2_module19_volume = models.CharField(max_length=4, null = True,blank= True)
347 an2_module19_credit = models.CharField(max_length=2, null = True,blank= True)
348 an2_module19_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
349 an2_module20_nom = models.TextField( null = True,blank= True)
350 an2_module20_volume = models.CharField(max_length=4, null = True,blank= True)
351 an2_module20_credit = models.CharField(max_length=2, null = True,blank= True)
352 an2_module20_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
353 an2_module21_nom = models.TextField( null = True,blank= True)
354 an2_module21_volume = models.CharField(max_length=4, null = True,blank= True)
355 an2_module21_credit = models.CharField(max_length=2, null = True,blank= True)
356 an2_module21_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
357 an2_module22_nom = models.TextField( null = True,blank= True)
358 an2_module22_volume = models.CharField(max_length=4, null = True,blank= True)
359 an2_module22_credit = models.CharField(max_length=2, null = True,blank= True)
360 an2_module22_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
361
362
363 an3_module1_nom = models.TextField( null = True,blank= True)
364 an3_module1_volume = models.CharField(max_length=4, null = True,blank= True)
365 an3_module1_credit = models.CharField(max_length=2, null = True,blank= True)
366 an3_module1_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
367 an3_module2_nom = models.TextField( null = True,blank= True)
368 an3_module2_volume = models.CharField(max_length=4, null = True,blank= True)
369 an3_module2_credit = models.CharField(max_length=2, null = True,blank= True)
370 an3_module2_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
371 an3_module3_nom = models.TextField( null = True,blank= True)
372 an3_module3_volume = models.CharField(max_length=4, null = True,blank= True)
373 an3_module3_credit = models.CharField(max_length=2, null = True,blank= True)
374 an3_module3_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
375 an3_module4_nom = models.TextField( null = True,blank= True)
376 an3_module4_volume = models.CharField(max_length=4, null = True,blank= True)
377 an3_module4_credit = models.CharField(max_length=2, null = True,blank= True)
378 an3_module4_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
379 an3_module5_nom = models.TextField( null = True,blank= True)
380 an3_module5_volume = models.CharField(max_length=4, null = True,blank= True)
381 an3_module5_credit = models.CharField(max_length=100, null = True,blank= True)
382 an3_module5_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
383 an3_module6_nom = models.TextField( null = True,blank= True)
384 an3_module6_volume = models.CharField(max_length=4, null = True,blank= True)
385 an3_module6_credit = models.CharField(max_length=2, null = True,blank= True)
386 an3_module6_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
387 an3_module7_nom = models.TextField( null = True,blank= True)
388 an3_module7_volume = models.CharField(max_length=4, null = True,blank= True)
389 an3_module7_credit = models.CharField(max_length=2, null = True,blank= True)
390 an3_module7_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
391 an3_module8_nom = models.TextField( null = True,blank= True)
392 an3_module8_volume = models.CharField(max_length=4, null = True,blank= True)
393 an3_module8_credit = models.CharField(max_length=2, null = True,blank= True)
394 an3_module8_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
395 an3_module9_nom = models.TextField( null = True,blank= True)
396 an3_module9_volume = models.CharField(max_length=4, null = True,blank= True)
397 an3_module9_credit = models.CharField(max_length=2, null = True,blank= True)
398 an3_module9_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
399 an3_module10_nom = models.TextField( null = True,blank= True)
400 an3_module10_volume = models.CharField(max_length=4, null = True,blank= True)
401 an3_module10_credit = models.CharField(max_length=2, null = True,blank= True)
402 an3_module10_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
403 an3_module11_nom = models.TextField( null = True,blank= True)
404 an3_module11_volume = models.CharField(max_length=4, null = True,blank= True)
405 an3_module11_credit = models.CharField(max_length=2, null = True,blank= True)
406 an3_module11_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
407 an3_module12_nom = models.TextField( null = True,blank= True)
408 an3_module12_volume = models.CharField(max_length=4, null = True,blank= True)
409 an3_module12_credit = models.CharField(max_length=2, null = True,blank= True)
410 an3_module12_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
411 an3_module13_nom = models.TextField( null = True,blank= True)
412 an3_module13_volume = models.CharField(max_length=4, null = True,blank= True)
413 an3_module13_credit = models.CharField(max_length=2, null = True,blank= True)
414 an3_module13_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
415 an3_module14_nom = models.TextField( null = True,blank= True)
416 an3_module14_volume = models.CharField(max_length=4, null = True,blank= True)
417 an3_module14_credit = models.CharField(max_length=2, null = True,blank= True)
418 an3_module14_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
419 an3_module15_nom = models.TextField( null = True,blank= True)
420 an3_module15_volume = models.CharField(max_length=4, null = True,blank= True)
421 an3_module15_credit = models.CharField(max_length=2, null = True,blank= True)
422 an3_module15_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
423 an3_module15_nom = models.TextField( null = True,blank= True)
424 an3_module15_volume = models.CharField(max_length=4, null = True,blank= True)
425 an3_module15_credit = models.CharField(max_length=2, null = True,blank= True)
426 an3_module15_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
427 an3_module16_nom = models.TextField( null = True,blank= True)
428 an3_module16_volume = models.CharField(max_length=4, null = True,blank= True)
429 an3_module16_credit = models.CharField(max_length=2, null = True,blank= True)
430 an3_module16_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
431 an3_module17_nom = models.TextField( null = True,blank= True)
432 an3_module17_volume = models.CharField(max_length=4, null = True,blank= True)
433 an3_module17_credit = models.CharField(max_length=2, null = True,blank= True)
434 an3_module17_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
435 an3_module18_nom = models.TextField( null = True,blank= True)
436 an3_module18_volume = models.CharField(max_length=4, null = True,blank= True)
437 an3_module18_credit = models.CharField(max_length=2, null = True,blank= True)
438 an3_module18_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
439 an3_module19_nom = models.TextField( null = True,blank= True)
440 an3_module19_volume = models.CharField(max_length=4, null = True,blank= True)
441 an3_module19_credit = models.CharField(max_length=2, null = True,blank= True)
442 an3_module19_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
443 an3_module20_nom = models.TextField( null = True,blank= True)
444 an3_module20_volume = models.CharField(max_length=4, null = True,blank= True)
445 an3_module20_credit = models.CharField(max_length=2, null = True,blank= True)
446 an3_module20_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
447 an3_module21_nom = models.TextField( null = True,blank= True)
448 an3_module21_volume = models.CharField(max_length=4, null = True,blank= True)
449 an3_module21_credit = models.CharField(max_length=2, null = True,blank= True)
450 an3_module21_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
451 an3_module22_nom = models.TextField( null = True,blank= True)
452 an3_module22_volume = models.CharField(max_length=4, null = True,blank= True)
453 an3_module22_credit = models.CharField(max_length=2, null = True,blank= True)
454 an3_module22_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
455
456 an4_module1_nom = models.TextField( null = True,blank= True)
457 an4_module1_volume = models.CharField(max_length=4, null = True,blank= True)
458 an4_module1_credit = models.CharField(max_length=2, null = True,blank= True)
459 an4_module1_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
460 an4_module2_nom = models.TextField( null = True,blank= True)
461 an4_module2_volume = models.CharField(max_length=4, null = True,blank= True)
462 an4_module2_credit = models.CharField(max_length=2, null = True,blank= True)
463 an4_module2_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
464 an4_module3_nom = models.TextField( null = True,blank= True)
465 an4_module3_volume = models.CharField(max_length=4, null = True,blank= True)
466 an4_module3_credit = models.CharField(max_length=2, null = True,blank= True)
467 an4_module3_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
468 an4_module4_nom = models.TextField( null = True,blank= True)
469 an4_module4_volume = models.CharField(max_length=4, null = True,blank= True)
470 an4_module4_credit = models.CharField(max_length=2, null = True,blank= True)
471 an4_module4_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
472 an4_module5_nom = models.TextField( null = True,blank= True)
473 an4_module5_volume = models.CharField(max_length=4, null = True,blank= True)
474 an4_module5_credit = models.CharField(max_length=100, null = True,blank= True)
475 an4_module5_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
476 an4_module6_nom = models.TextField( null = True,blank= True)
477 an4_module6_volume = models.CharField(max_length=4, null = True,blank= True)
478 an4_module6_credit = models.CharField(max_length=2, null = True,blank= True)
479 an4_module6_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
480 an4_module7_nom = models.TextField( null = True,blank= True)
481 an4_module7_volume = models.CharField(max_length=4, null = True,blank= True)
482 an4_module7_credit = models.CharField(max_length=2, null = True,blank= True)
483 an4_module7_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
484 an4_module8_nom = models.TextField( null = True,blank= True)
485 an4_module8_volume = models.CharField(max_length=4, null = True,blank= True)
486 an4_module8_credit = models.CharField(max_length=2, null = True,blank= True)
487 an4_module8_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
488 an4_module9_nom = models.TextField( null = True,blank= True)
489 an4_module9_volume = models.CharField(max_length=4, null = True,blank= True)
490 an4_module9_credit = models.CharField(max_length=2, null = True,blank= True)
491 an4_module9_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
492 an4_module10_nom = models.TextField( null = True,blank= True)
493 an4_module10_volume = models.CharField(max_length=4, null = True,blank= True)
494 an4_module10_credit = models.CharField(max_length=2, null = True,blank= True)
495 an4_module10_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
496 an4_module11_nom = models.TextField( null = True,blank= True)
497 an4_module11_volume = models.CharField(max_length=4, null = True,blank= True)
498 an4_module11_credit = models.CharField(max_length=2, null = True,blank= True)
499 an4_module11_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
500 an4_module12_nom = models.TextField( null = True,blank= True)
501 an4_module12_volume = models.CharField(max_length=4, null = True,blank= True)
502 an4_module12_credit = models.CharField(max_length=2, null = True,blank= True)
503 an4_module12_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
504 an4_module13_nom = models.TextField( null = True,blank= True)
505 an4_module13_volume = models.CharField(max_length=4, null = True,blank= True)
506 an4_module13_credit = models.CharField(max_length=2, null = True,blank= True)
507 an4_module13_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
508 an4_module14_nom = models.TextField( null = True,blank= True)
509 an4_module14_volume = models.CharField(max_length=4, null = True,blank= True)
510 an4_module14_credit = models.CharField(max_length=2, null = True,blank= True)
511 an4_module14_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
512 an4_module15_nom = models.TextField( null = True,blank= True)
513 an4_module15_volume = models.CharField(max_length=4, null = True,blank= True)
514 an4_module15_credit = models.CharField(max_length=2, null = True,blank= True)
515 an4_module15_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
516 an4_module15_nom = models.TextField( null = True,blank= True)
517 an4_module15_volume = models.CharField(max_length=4, null = True,blank= True)
518 an4_module15_credit = models.CharField(max_length=2, null = True,blank= True)
519 an4_module15_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
520 an4_module16_nom = models.TextField( null = True,blank= True)
521 an4_module16_volume = models.CharField(max_length=4, null = True,blank= True)
522 an4_module16_credit = models.CharField(max_length=2, null = True,blank= True)
523 an4_module16_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
524 an4_module17_nom = models.TextField( null = True,blank= True)
525 an4_module17_volume = models.CharField(max_length=4, null = True,blank= True)
526 an4_module17_credit = models.CharField(max_length=2, null = True,blank= True)
527 an4_module17_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
528 an4_module18_nom = models.TextField( null = True,blank= True)
529 an4_module18_volume = models.CharField(max_length=4, null = True,blank= True)
530 an4_module18_credit = models.CharField(max_length=2, null = True,blank= True)
531 an4_module18_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
532 an4_module19_nom = models.TextField( null = True,blank= True)
533 an4_module19_volume = models.CharField(max_length=4, null = True,blank= True)
534 an4_module19_credit = models.CharField(max_length=2, null = True,blank= True)
535 an4_module19_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
536 an4_module20_nom = models.TextField( null = True,blank= True)
537 an4_module20_volume = models.CharField(max_length=4, null = True,blank= True)
538 an4_module20_credit = models.CharField(max_length=2, null = True,blank= True)
539 an4_module20_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
540 an4_module21_nom = models.TextField( null = True,blank= True)
541 an4_module21_volume = models.CharField(max_length=4, null = True,blank= True)
542 an4_module21_credit = models.CharField(max_length=2, null = True,blank= True)
543 an4_module21_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
544 an4_module22_nom = models.TextField( null = True,blank= True)
545 an4_module22_volume = models.CharField(max_length=4, null = True,blank= True)
546 an4_module22_credit = models.CharField(max_length=2, null = True,blank= True)
547 an4_module22_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
548
549 an5_module1_nom = models.TextField( null = True,blank= True)
550 an5_module1_volume = models.CharField(max_length=4, null = True,blank= True)
551 an5_module1_credit = models.CharField(max_length=2, null = True,blank= True)
552 an5_module1_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
553 an5_module2_nom = models.TextField( null = True,blank= True)
554 an5_module2_volume = models.CharField(max_length=4, null = True,blank= True)
555 an5_module2_credit = models.CharField(max_length=2, null = True,blank= True)
556 an5_module2_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
557 an5_module3_nom = models.TextField( null = True,blank= True)
558 an5_module3_volume = models.CharField(max_length=4, null = True,blank= True)
559 an5_module3_credit = models.CharField(max_length=2, null = True,blank= True)
560 an5_module3_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
561 an5_module4_nom = models.TextField( null = True,blank= True)
562 an5_module4_volume = models.CharField(max_length=4, null = True,blank= True)
563 an5_module4_credit = models.CharField(max_length=2, null = True,blank= True)
564 an5_module4_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
565 an5_module5_nom = models.TextField( null = True,blank= True)
566 an5_module5_volume = models.CharField(max_length=4, null = True,blank= True)
567 an5_module5_credit = models.CharField(max_length=2, null = True,blank= True)
568 an5_module5_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
569 an5_module6_nom = models.TextField( null = True,blank= True)
570 an5_module6_volume = models.CharField(max_length=4, null = True,blank= True)
571 an5_module6_credit = models.CharField(max_length=2, null = True,blank= True)
572 an5_module6_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
573 an5_module7_nom = models.TextField( null = True,blank= True)
574 an5_module7_volume = models.CharField(max_length=4, null = True,blank= True)
575 an5_module7_credit = models.CharField(max_length=2, null = True,blank= True)
576 an5_module7_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
577 an5_module8_nom = models.TextField( null = True,blank= True)
578 an5_module8_volume = models.CharField(max_length=4, null = True,blank= True)
579 an5_module8_credit = models.CharField(max_length=2, null = True,blank= True)
580 an5_module8_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
581 an5_module9_nom = models.TextField( null = True,blank= True)
582 an5_module9_volume = models.CharField(max_length=4, null = True,blank= True)
583 an5_module9_credit = models.CharField(max_length=2, null = True,blank= True)
584 an5_module9_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
585 an5_module10_nom = models.TextField( null = True,blank= True)
586 an5_module10_volume = models.CharField(max_length=4, null = True,blank= True)
587 an5_module10_credit = models.CharField(max_length=2, null = True,blank= True)
588 an5_module10_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
589 an5_module11_nom = models.TextField( null = True,blank= True)
590 an5_module11_volume = models.CharField(max_length=4, null = True,blank= True)
591 an5_module11_credit = models.CharField(max_length=2, null = True,blank= True)
592 an5_module11_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
593 an5_module12_nom = models.TextField( null = True,blank= True)
594 an5_module12_volume = models.CharField(max_length=4, null = True,blank= True)
595 an5_module12_credit = models.CharField(max_length=2, null = True,blank= True)
596 an5_module12_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
597 an5_module13_nom = models.TextField( null = True,blank= True)
598 an5_module13_volume = models.CharField(max_length=4, null = True,blank= True)
599 an5_module13_credit = models.CharField(max_length=2, null = True,blank= True)
600 an5_module13_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
601 an5_module14_nom = models.TextField( null = True,blank= True)
602 an5_module14_volume = models.CharField(max_length=4, null = True,blank= True)
603 an5_module14_credit = models.CharField(max_length=2, null = True,blank= True)
604 an5_module14_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
605 an5_module15_nom = models.TextField( null = True,blank= True)
606 an5_module15_volume = models.CharField(max_length=4, null = True,blank= True)
607 an5_module15_credit = models.CharField(max_length=2, null = True,blank= True)
608 an5_module15_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
609 an5_module15_nom = models.TextField( null = True,blank= True)
610 an5_module15_volume = models.CharField(max_length=4, null = True,blank= True)
611 an5_module15_credit = models.CharField(max_length=2, null = True,blank= True)
612 an5_module15_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
613 an5_module16_nom = models.TextField( null = True,blank= True)
614 an5_module16_volume = models.CharField(max_length=4, null = True,blank= True)
615 an5_module16_credit = models.CharField(max_length=2, null = True,blank= True)
616 an5_module16_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
617 an5_module17_nom = models.TextField( null = True,blank= True)
618 an5_module17_volume = models.CharField(max_length=4, null = True,blank= True)
619 an5_module17_credit = models.CharField(max_length=2, null = True,blank= True)
620 an5_module17_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
621 an5_module18_nom = models.TextField( null = True,blank= True)
622 an5_module18_volume = models.CharField(max_length=4, null = True,blank= True)
623 an5_module18_credit = models.CharField(max_length=2, null = True,blank= True)
624 an5_module18_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
625 an5_module19_nom = models.TextField( null = True,blank= True)
626 an5_module19_volume = models.CharField(max_length=4, null = True,blank= True)
627 an5_module19_credit = models.CharField(max_length=2, null = True,blank= True)
628 an5_module19_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
629 an5_module20_nom = models.TextField( null = True,blank= True)
630 an5_module20_volume = models.CharField(max_length=4, null = True,blank= True)
631 an5_module20_credit = models.CharField(max_length=2, null = True,blank= True)
632 an5_module20_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
633 an5_module21_nom = models.TextField( null = True,blank= True)
634 an5_module21_volume = models.CharField(max_length=4, null = True,blank= True)
635 an5_module21_credit = models.CharField(max_length=2, null = True,blank= True)
636 an5_module21_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
637 an5_module22_nom = models.TextField( null = True,blank= True)
638 an5_module22_volume = models.CharField(max_length=4, null = True,blank= True)
639 an5_module22_credit = models.CharField(max_length=2, null = True,blank= True)
640 an5_module22_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
641
642 an6_module1_nom = models.TextField( null = True,blank= True)
643 an6_module1_volume = models.CharField(max_length=4, null = True,blank= True)
644 an6_module1_credit = models.CharField(max_length=2, null = True,blank= True)
645 an6_module1_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
646 an6_module2_nom = models.TextField( null = True,blank= True)
647 an6_module2_volume = models.CharField(max_length=4, null = True,blank= True)
648 an6_module2_credit = models.CharField(max_length=2, null = True,blank= True)
649 an6_module2_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
650 an6_module3_nom = models.TextField( null = True,blank= True)
651 an6_module3_volume = models.CharField(max_length=4, null = True,blank= True)
652 an6_module3_credit = models.CharField(max_length=2, null = True,blank= True)
653 an6_module3_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
654 an6_module4_nom = models.TextField( null = True,blank= True)
655 an6_module4_volume = models.CharField(max_length=4, null = True,blank= True)
656 an6_module4_credit = models.CharField(max_length=2, null = True,blank= True)
657 an6_module4_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
658 an6_module5_nom = models.TextField( null = True,blank= True)
659 an6_module5_volume = models.CharField(max_length=4, null = True,blank= True)
660 an6_module5_credit = models.CharField(max_length=100, null = True,blank= True)
661 an6_module5_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
662 an6_module6_nom = models.TextField( null = True,blank= True)
663 an6_module6_volume = models.CharField(max_length=4, null = True,blank= True)
664 an6_module6_credit = models.CharField(max_length=2, null = True,blank= True)
665 an6_module6_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
666 an6_module7_nom = models.TextField( null = True,blank= True)
667 an6_module7_volume = models.CharField(max_length=4, null = True,blank= True)
668 an6_module7_credit = models.CharField(max_length=2, null = True,blank= True)
669 an6_module7_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
670 an6_module8_nom = models.TextField( null = True,blank= True)
671 an6_module8_volume = models.CharField(max_length=4, null = True,blank= True)
672 an6_module8_credit = models.CharField(max_length=2, null = True,blank= True)
673 an6_module8_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
674 an6_module9_nom = models.TextField( null = True,blank= True)
675 an6_module9_volume = models.CharField(max_length=4, null = True,blank= True)
676 an6_module9_credit = models.CharField(max_length=2, null = True,blank= True)
677 an6_module9_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
678 an6_module10_nom = models.TextField( null = True,blank= True)
679 an6_module10_volume = models.CharField(max_length=4, null = True,blank= True)
680 an6_module10_credit = models.CharField(max_length=2, null = True,blank= True)
681 an6_module10_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
682 an6_module11_nom = models.TextField( null = True,blank= True)
683 an6_module11_volume = models.CharField(max_length=4, null = True,blank= True)
684 an6_module11_credit = models.CharField(max_length=2, null = True,blank= True)
685 an6_module11_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
686 an6_module12_nom = models.TextField( null = True,blank= True)
687 an6_module12_volume = models.CharField(max_length=4, null = True,blank= True)
688 an6_module12_credit = models.CharField(max_length=2, null = True,blank= True)
689 an6_module12_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
690 an6_module13_nom = models.TextField( null = True,blank= True)
691 an6_module13_volume = models.CharField(max_length=4, null = True,blank= True)
692 an6_module13_credit = models.CharField(max_length=2, null = True,blank= True)
693 an6_module13_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
694 an6_module14_nom = models.TextField( null = True,blank= True)
695 an6_module14_volume = models.CharField(max_length=4, null = True,blank= True)
696 an6_module14_credit = models.CharField(max_length=2, null = True,blank= True)
697 an6_module14_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
698 an6_module15_nom = models.TextField( null = True,blank= True)
699 an6_module15_volume = models.CharField(max_length=4, null = True,blank= True)
700 an6_module15_credit = models.CharField(max_length=2, null = True,blank= True)
701 an6_module15_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
702 an6_module15_nom = models.TextField( null = True,blank= True)
703 an6_module15_volume = models.CharField(max_length=4, null = True,blank= True)
704 an6_module15_credit = models.CharField(max_length=2, null = True,blank= True)
705 an6_module15_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
706 an6_module16_nom = models.TextField( null = True,blank= True)
707 an6_module16_volume = models.CharField(max_length=4, null = True,blank= True)
708 an6_module16_credit = models.CharField(max_length=2, null = True,blank= True)
709 an6_module16_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
710 an6_module17_nom = models.TextField( null = True,blank= True)
711 an6_module17_volume = models.CharField(max_length=4, null = True,blank= True)
712 an6_module17_credit = models.CharField(max_length=2, null = True,blank= True)
713 an6_module17_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
714 an6_module18_nom = models.TextField( null = True,blank= True)
715 an6_module18_volume = models.CharField(max_length=4, null = True,blank= True)
716 an6_module18_credit = models.CharField(max_length=2, null = True,blank= True)
717 an6_module18_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
718 an6_module19_nom = models.TextField( null = True,blank= True)
719 an6_module19_volume = models.CharField(max_length=4, null = True,blank= True)
720 an6_module19_credit = models.CharField(max_length=2, null = True,blank= True)
721 an6_module19_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
722 an6_module20_nom = models.TextField( null = True,blank= True)
723 an6_module20_volume = models.CharField(max_length=4, null = True,blank= True)
724 an6_module20_credit = models.CharField(max_length=2, null = True,blank= True)
725 an6_module20_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
726 an6_module21_nom = models.TextField( null = True,blank= True)
727 an6_module21_volume = models.CharField(max_length=4, null = True,blank= True)
728 an6_module21_credit = models.CharField(max_length=2, null = True,blank= True)
729 an6_module21_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
730 an6_module22_nom = models.TextField( null = True,blank= True)
731 an6_module22_volume = models.CharField(max_length=4, null = True,blank= True)
732 an6_module22_credit = models.CharField(max_length=2, null = True,blank= True)
733 an6_module22_langue = models.CharField(max_length=10,verbose_name = u"", null = True, blank = True)
734 uuid = models.CharField(max_length=30, null = True, blank = True)
735
736 def save(self):
737 if not self.id:
738 self.uuid = my_random_string(30)
739 super(CartoFormation, self).save()
740
741 def __unicode__(self):
742 return self.nom
743
744def my_random_string(string_length=10):
745 """Returns a random string of length string_length."""
746 random = str(uuid.uuid4()) # Convert UUID format to a Python string.
747 random = random.upper() # Make all characters uppercase.
748 random = random.replace("-","") # Remove the UUID '-'.
749 return random[0:string_length] # Return the random string.
750
751
752
753
754
755
756
757
758
759