import users
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / savoirs / migrations / 0014_importation_employes_auf.py
1 # encoding: utf-8
2
3 import datetime
4 from django.core.exceptions import MultipleObjectsReturned, ObjectDoesNotExist
5 from south.db import db
6 from south.v2 import DataMigration
7 from django.db import models
8
9 from datamaster_modeles.models import Authentification as RemoteUser, Employe
10
11 class Migration(DataMigration):
12
13 def forwards(self, orm):
14 "Write your forwards methods here."
15 grp_auf,created = orm['auth.Group'].objects.get_or_create(name="AUF")
16 grp_auf.save()
17
18 for auth in RemoteUser.objects.all():
19 employe = auth.id
20 try:
21 user, created = orm['auth.User'].objects.get_or_create(email=auth.courriel)
22 username = auth.courriel.replace("@auf.org", "")
23 user.username = username
24 user.email = auth.courriel
25 user.first_name = employe.prenom
26 user.last_name = employe.nom
27 user.is_staff = True
28 user.is_active = True
29 user.password = auth.motdepasse
30 user.save()
31
32 user.groups.add(grp_auf)
33 user.save()
34 except MultipleObjectsReturned:
35 print "user avec le courriel %s existe plusieurs fois!" % auth.courriel
36
37 def backwards(self, orm):
38 "Write your backwards methods here."
39 grp_auf, created = orm['auth.Group'].objects.get_or_create(name="AUF")
40 grp_auf.delete()
41 for employe in RemoteUser.objects.all():
42 try:
43 u = orm['auth.User'].objects.get(email=employe.courriel)
44 u.delete()
45 except ObjectDoesNotExist:
46 pass
47 except MultipleObjectsReturned:
48 print "user avec le courriel %s existe plusieurs fois!" % employe.courriel
49
50 models = {
51 'auth.group': {
52 'Meta': {'object_name': 'Group'},
53 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54 'name': ('django.db.models.fields.CharField', [], {'max_length': '80', 'unique': 'True'}),
55 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
56 },
57 'auth.permission': {
58 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
59 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
60 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
61 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
62 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
63 },
64 'auth.user': {
65 'Meta': {'object_name': 'User'},
66 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
67 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
68 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
69 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
70 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
71 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
72 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
73 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
74 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
75 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
76 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
77 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
78 'username': ('django.db.models.fields.CharField', [], {'max_length': '30', 'unique': 'True'})
79 },
80 'contenttypes.contenttype': {
81 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
82 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
83 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
84 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
85 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
86 },
87 'datamaster_modeles.bureau': {
88 'Meta': {'object_name': 'Bureau', 'db_table': "u'ref_bureau'"},
89 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
90 'code': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True'}),
91 'id': ('django.db.models.fields.IntegerField', [], {'primary_key': 'True'}),
92 'implantation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['datamaster_modeles.Implantation']", 'db_column': "'implantation'"}),
93 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
94 'nom_court': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
95 'nom_long': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
96 'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['datamaster_modeles.Region']", 'db_column': "'region'"})
97 },
98 'datamaster_modeles.implantation': {
99 'Meta': {'ordering': "('nom',)", 'object_name': 'Implantation', 'db_table': "u'ref_implantation'"},
100 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
101 'adresse_physique_bureau': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
102 'adresse_physique_code_postal': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
103 'adresse_physique_code_postal_avant_ville': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
104 'adresse_physique_no': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
105 'adresse_physique_pays': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'impl_adresse_physique'", 'db_column': "'adresse_physique_pays'", 'to': "orm['datamaster_modeles.Pays']"}),
106 'adresse_physique_precision': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
107 'adresse_physique_precision_avant': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
108 'adresse_physique_region': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
109 'adresse_physique_rue': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
110 'adresse_physique_ville': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
111 'adresse_postale_boite_postale': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
112 'adresse_postale_bureau': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
113 'adresse_postale_code_postal': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
114 'adresse_postale_code_postal_avant_ville': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
115 'adresse_postale_no': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
116 'adresse_postale_pays': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'impl_adresse_postale'", 'db_column': "'adresse_postale_pays'", 'to': "orm['datamaster_modeles.Pays']"}),
117 'adresse_postale_precision': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
118 'adresse_postale_precision_avant': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
119 'adresse_postale_region': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
120 'adresse_postale_rue': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
121 'adresse_postale_ville': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
122 'bureau_rattachement': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['datamaster_modeles.Implantation']", 'db_column': "'bureau_rattachement'"}),
123 'code': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True'}),
124 'code_meteo': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
125 'commentaire': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
126 'courriel': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
127 'courriel_interne': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
128 'date_extension': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
129 'date_fermeture': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
130 'date_inauguration': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
131 'date_ouverture': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
132 'fax': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
133 'fax_interne': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
134 'fuseau_horaire': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
135 'hebergement_convention': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
136 'hebergement_convention_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
137 'hebergement_etablissement': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
138 'id': ('django.db.models.fields.IntegerField', [], {'primary_key': 'True'}),
139 'modif_date': ('django.db.models.fields.DateField', [], {}),
140 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
141 'nom_court': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
142 'nom_long': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
143 'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['datamaster_modeles.Region']", 'db_column': "'region'"}),
144 'remarque': ('django.db.models.fields.TextField', [], {}),
145 'responsable_implantation': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
146 'statut': ('django.db.models.fields.IntegerField', [], {}),
147 'telephone': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
148 'telephone_interne': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
149 'type': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
150 'url': ('django.db.models.fields.URLField', [], {'max_length': '255', 'blank': 'True'})
151 },
152 'datamaster_modeles.pays': {
153 'Meta': {'ordering': "('nom',)", 'object_name': 'Pays', 'db_table': "u'ref_pays'"},
154 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
155 'code': ('django.db.models.fields.CharField', [], {'max_length': '2', 'primary_key': 'True'}),
156 'code_bureau': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['datamaster_modeles.Bureau']", 'to_field': "'code'", 'db_column': "'code_bureau'"}),
157 'code_iso3': ('django.db.models.fields.CharField', [], {'max_length': '3', 'unique': 'True', 'blank': 'True'}),
158 'developpement': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
159 'id': ('django.db.models.fields.IntegerField', [], {}),
160 'monnaie': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
161 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
162 'nord_sud': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
163 'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['datamaster_modeles.Region']", 'db_column': "'region'"})
164 },
165 'datamaster_modeles.region': {
166 'Meta': {'object_name': 'Region', 'db_table': "u'ref_region'"},
167 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
168 'code': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True'}),
169 'id': ('django.db.models.fields.IntegerField', [], {'primary_key': 'True'}),
170 'implantation_bureau': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'gere_region'", 'db_column': "'implantation_bureau'", 'to': "orm['datamaster_modeles.Implantation']"}),
171 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'})
172 },
173 'datamaster_modeles.thematique': {
174 'Meta': {'object_name': 'Thematique', 'db_table': "u'ref_thematique'"},
175 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
176 'id': ('django.db.models.fields.IntegerField', [], {'primary_key': 'True'}),
177 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'})
178 },
179 'savoirs.actualite': {
180 'Meta': {'ordering': "['-date']", 'object_name': 'Actualite', 'db_table': "u'actualite'"},
181 'ancienid': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'db_column': "'ancienId_actualite'", 'blank': 'True'}),
182 'date': ('django.db.models.fields.DateField', [], {'db_column': "'date_actualite'"}),
183 'disciplines': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'actualites'", 'blank': 'True', 'to': "orm['savoirs.Discipline']"}),
184 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True', 'db_column': "'id_actualite'"}),
185 'regions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'actualites'", 'blank': 'True', 'to': "orm['datamaster_modeles.Region']"}),
186 'source': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actualites'", 'to': "orm['savoirs.SourceActualite']"}),
187 'texte': ('django.db.models.fields.TextField', [], {'db_column': "'texte_actualite'"}),
188 'titre': ('django.db.models.fields.CharField', [], {'max_length': '765', 'db_column': "'titre_actualite'"}),
189 'url': ('django.db.models.fields.CharField', [], {'max_length': '765', 'db_column': "'url_actualite'"}),
190 'visible': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_column': "'visible_actualite'"})
191 },
192 'savoirs.actualitesearch': {
193 'Meta': {'object_name': 'ActualiteSearch'},
194 'date_max': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
195 'date_min': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
196 'search_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['savoirs.Search']", 'unique': 'True', 'primary_key': True})
197 },
198 'savoirs.appelsearch': {
199 'Meta': {'object_name': 'AppelSearch'},
200 'date_max': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
201 'date_min': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
202 'search_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['savoirs.Search']", 'unique': 'True', 'primary_key': 'True'})
203 },
204 'savoirs.discipline': {
205 'Meta': {'ordering': "['nom']", 'object_name': 'Discipline', 'db_table': "u'discipline'"},
206 'id': ('django.db.models.fields.IntegerField', [], {'primary_key': 'True', 'db_column': "'id_discipline'"}),
207 'nom': ('django.db.models.fields.CharField', [], {'max_length': '765', 'db_column': "'nom_discipline'"})
208 },
209 'savoirs.evenement': {
210 'Meta': {'ordering': "['-debut']", 'object_name': 'Evenement'},
211 'adresse': ('django.db.models.fields.TextField', [], {}),
212 'approuve': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
213 'contact': ('django.db.models.fields.TextField', [], {'null': 'True'}),
214 'courriel': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
215 'debut': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
216 'description': ('django.db.models.fields.TextField', [], {}),
217 'discipline': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'discipline'", 'blank': 'True', 'null': 'True', 'to': "orm['savoirs.Discipline']"}),
218 'discipline_secondaire': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'discipline_secondaire'", 'blank': 'True', 'null': 'True', 'to': "orm['savoirs.Discipline']"}),
219 'fin': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
220 'fuseau': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
221 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
222 'mots_cles': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
223 'nom': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
224 'pays': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'evenements'", 'null': 'True', 'to': "orm['datamaster_modeles.Pays']"}),
225 'piece_jointe': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
226 'prenom': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
227 'regions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'evenements'", 'blank': 'True', 'to': "orm['datamaster_modeles.Region']"}),
228 'titre': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
229 'type': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
230 'uid': ('django.db.models.fields.CharField', [], {'default': "'05dd698c-6440-11e0-afda-64315030e72d'", 'max_length': '255'}),
231 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
232 'ville': ('django.db.models.fields.CharField', [], {'max_length': '100'})
233 },
234 'savoirs.evenementsearch': {
235 'Meta': {'object_name': 'EvenementSearch', '_ormbases': ['savoirs.Search']},
236 'date_max': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
237 'date_min': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
238 'search_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['savoirs.Search']", 'unique': 'True', 'primary_key': 'True'}),
239 'titre': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
240 'type': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'})
241 },
242 'savoirs.harvestlog': {
243 'Meta': {'object_name': 'HarvestLog'},
244 'added': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
245 'context': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
246 'date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
247 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
248 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
249 'processed': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
250 'record': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['savoirs.Record']", 'null': 'True', 'blank': 'True'}),
251 'updated': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'})
252 },
253 'savoirs.listset': {
254 'Meta': {'object_name': 'ListSet'},
255 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
256 'server': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
257 'spec': ('django.db.models.fields.CharField', [], {'max_length': '255', 'primary_key': 'True'}),
258 'validated': ('django.db.models.fields.BooleanField', [], {'default': 'True'})
259 },
260 'savoirs.pagestatique': {
261 'Meta': {'object_name': 'PageStatique'},
262 'contenu': ('django.db.models.fields.TextField', [], {}),
263 'id': ('django.db.models.fields.CharField', [], {'max_length': '32', 'primary_key': 'True'}),
264 'titre': ('django.db.models.fields.CharField', [], {'max_length': '100'})
265 },
266 'savoirs.profile': {
267 'Meta': {'object_name': 'Profile'},
268 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
269 'serveurs': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['savoirs.Serveur']", 'symmetrical': 'False', 'null': 'True', 'blank': 'True'}),
270 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'unique': 'True'})
271 },
272 'savoirs.record': {
273 'Meta': {'object_name': 'Record'},
274 'abstract': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
275 'alt_title': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
276 'contributor': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
277 'creation': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
278 'creator': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
279 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
280 'disciplines': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['savoirs.Discipline']", 'symmetrical': 'False', 'blank': 'True'}),
281 'format': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
282 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
283 'identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
284 'isbn': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
285 'issued': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
286 'language': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
287 'last_checksum': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
288 'last_update': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
289 'listsets': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['savoirs.ListSet']", 'symmetrical': 'False', 'null': 'True', 'blank': 'True'}),
290 'modified': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
291 'orig_lang': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
292 'pays': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['datamaster_modeles.Pays']", 'symmetrical': 'False', 'blank': 'True'}),
293 'publisher': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
294 'regions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['datamaster_modeles.Region']", 'symmetrical': 'False', 'blank': 'True'}),
295 'server': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
296 'source': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
297 'subject': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
298 'thematiques': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['datamaster_modeles.Thematique']", 'symmetrical': 'False', 'blank': 'True'}),
299 'title': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
300 'type': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
301 'uri': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
302 'validated': ('django.db.models.fields.BooleanField', [], {'default': 'True'})
303 },
304 'savoirs.ressourcesearch': {
305 'Meta': {'object_name': 'RessourceSearch', '_ormbases': ['savoirs.Search']},
306 'auteur': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
307 'publisher': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
308 'search_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['savoirs.Search']", 'unique': 'True', 'primary_key': 'True'}),
309 'sujet': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
310 'titre': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'})
311 },
312 'savoirs.search': {
313 'Meta': {'object_name': 'Search'},
314 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
315 'discipline': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['savoirs.Discipline']", 'null': 'True', 'blank': 'True'}),
316 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
317 'nom': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
318 'q': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
319 'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['datamaster_modeles.Region']", 'null': 'True', 'blank': 'True'}),
320 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
321 },
322 'savoirs.serveur': {
323 'Meta': {'object_name': 'Serveur'},
324 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255', 'primary_key': 'True'})
325 },
326 'savoirs.sourceactualite': {
327 'Meta': {'object_name': 'SourceActualite'},
328 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
329 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
330 'type': ('django.db.models.fields.CharField', [], {'default': "'actu'", 'max_length': '10'}),
331 'url': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'})
332 }
333 }
334
335 complete_apps = ['savoirs']