How to use save_model method in autotest

Best Python code snippet using autotest_python

0003_auto_20170213_1250.py

Source:0003_auto_20170213_1250.py Github

copy

Full Screen

1# -*- coding: utf-8 -*-2# Generated by Django 1.10.4 on 2017-02-13 10:503from __future__ import unicode_literals4from django.db import migrations, models5class Migration(migrations.Migration):6 dependencies = [7 ('bcpp_subject', '0002_auto_20170211_2020'),8 ]9 operations = [10 migrations.AddField(11 model_name='accesstocare',12 name='form_as_json',13 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),14 ),15 migrations.AddField(16 model_name='cancer',17 name='form_as_json',18 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),19 ),20 migrations.AddField(21 model_name='cd4history',22 name='form_as_json',23 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),24 ),25 migrations.AddField(26 model_name='ceaenrollmentchecklist',27 name='form_as_json',28 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),29 ),30 migrations.AddField(31 model_name='circumcised',32 name='form_as_json',33 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),34 ),35 migrations.AddField(36 model_name='circumcision',37 name='form_as_json',38 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),39 ),40 migrations.AddField(41 model_name='clinicquestionnaire',42 name='form_as_json',43 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),44 ),45 migrations.AddField(46 model_name='communityengagement',47 name='form_as_json',48 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),49 ),50 migrations.AddField(51 model_name='demographics',52 name='form_as_json',53 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),54 ),55 migrations.AddField(56 model_name='education',57 name='form_as_json',58 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),59 ),60 migrations.AddField(61 model_name='elisahivresult',62 name='form_as_json',63 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),64 ),65 migrations.AddField(66 model_name='grant',67 name='form_as_json',68 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),69 ),70 migrations.AddField(71 model_name='heartattack',72 name='form_as_json',73 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),74 ),75 migrations.AddField(76 model_name='hicenrollment',77 name='form_as_json',78 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),79 ),80 migrations.AddField(81 model_name='historicalaccesstocare',82 name='form_as_json',83 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),84 ),85 migrations.AddField(86 model_name='historicalcancer',87 name='form_as_json',88 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),89 ),90 migrations.AddField(91 model_name='historicalcd4history',92 name='form_as_json',93 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),94 ),95 migrations.AddField(96 model_name='historicalceaenrollmentchecklist',97 name='form_as_json',98 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),99 ),100 migrations.AddField(101 model_name='historicalcircumcised',102 name='form_as_json',103 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),104 ),105 migrations.AddField(106 model_name='historicalcircumcision',107 name='form_as_json',108 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),109 ),110 migrations.AddField(111 model_name='historicalclinicquestionnaire',112 name='form_as_json',113 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),114 ),115 migrations.AddField(116 model_name='historicalcommunityengagement',117 name='form_as_json',118 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),119 ),120 migrations.AddField(121 model_name='historicaldemographics',122 name='form_as_json',123 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),124 ),125 migrations.AddField(126 model_name='historicaleducation',127 name='form_as_json',128 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),129 ),130 migrations.AddField(131 model_name='historicalelisahivresult',132 name='form_as_json',133 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),134 ),135 migrations.AddField(136 model_name='historicalgrant',137 name='form_as_json',138 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),139 ),140 migrations.AddField(141 model_name='historicalheartattack',142 name='form_as_json',143 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),144 ),145 migrations.AddField(146 model_name='historicalhicenrollment',147 name='form_as_json',148 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),149 ),150 migrations.AddField(151 model_name='historicalhivcareadherence',152 name='form_as_json',153 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),154 ),155 migrations.AddField(156 model_name='historicalhivhealthcarecosts',157 name='form_as_json',158 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),159 ),160 migrations.AddField(161 model_name='historicalhivlinkagetocare',162 name='form_as_json',163 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),164 ),165 migrations.AddField(166 model_name='historicalhivmedicalcare',167 name='form_as_json',168 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),169 ),170 migrations.AddField(171 model_name='historicalhivrelatedillness',172 name='form_as_json',173 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),174 ),175 migrations.AddField(176 model_name='historicalhivresult',177 name='form_as_json',178 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),179 ),180 migrations.AddField(181 model_name='historicalhivresultdocumentation',182 name='form_as_json',183 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),184 ),185 migrations.AddField(186 model_name='historicalhivtested',187 name='form_as_json',188 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),189 ),190 migrations.AddField(191 model_name='historicalhivtestinghistory',192 name='form_as_json',193 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),194 ),195 migrations.AddField(196 model_name='historicalhivtestreview',197 name='form_as_json',198 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),199 ),200 migrations.AddField(201 model_name='historicalhivuntested',202 name='form_as_json',203 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),204 ),205 migrations.AddField(206 model_name='historicalhospitaladmission',207 name='form_as_json',208 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),209 ),210 migrations.AddField(211 model_name='historicalhouseholdcomposition',212 name='form_as_json',213 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),214 ),215 migrations.AddField(216 model_name='historicallabourmarketwages',217 name='form_as_json',218 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),219 ),220 migrations.AddField(221 model_name='historicalmedicaldiagnoses',222 name='form_as_json',223 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),224 ),225 migrations.AddField(226 model_name='historicalnonpregnancy',227 name='form_as_json',228 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),229 ),230 migrations.AddField(231 model_name='historicaloutpatientcare',232 name='form_as_json',233 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),234 ),235 migrations.AddField(236 model_name='historicalparticipation',237 name='form_as_json',238 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),239 ),240 migrations.AddField(241 model_name='historicalpimacd4',242 name='form_as_json',243 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),244 ),245 migrations.AddField(246 model_name='historicalpimavl',247 name='form_as_json',248 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),249 ),250 migrations.AddField(251 model_name='historicalpositiveparticipant',252 name='form_as_json',253 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),254 ),255 migrations.AddField(256 model_name='historicalpregnancy',257 name='form_as_json',258 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),259 ),260 migrations.AddField(261 model_name='historicalqualityoflife',262 name='form_as_json',263 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),264 ),265 migrations.AddField(266 model_name='historicalrecentpartner',267 name='form_as_json',268 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),269 ),270 migrations.AddField(271 model_name='historicalreproductivehealth',272 name='form_as_json',273 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),274 ),275 migrations.AddField(276 model_name='historicalresidencymobility',277 name='form_as_json',278 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),279 ),280 migrations.AddField(281 model_name='historicalresourceutilization',282 name='form_as_json',283 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),284 ),285 migrations.AddField(286 model_name='historicalrespondent',287 name='form_as_json',288 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),289 ),290 migrations.AddField(291 model_name='historicalsecondpartner',292 name='form_as_json',293 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),294 ),295 migrations.AddField(296 model_name='historicalsexualbehaviour',297 name='form_as_json',298 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),299 ),300 migrations.AddField(301 model_name='historicalstigma',302 name='form_as_json',303 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),304 ),305 migrations.AddField(306 model_name='historicalstigmaopinion',307 name='form_as_json',308 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),309 ),310 migrations.AddField(311 model_name='historicalsubjectreferral',312 name='form_as_json',313 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),314 ),315 migrations.AddField(316 model_name='historicalsubstanceuse',317 name='form_as_json',318 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),319 ),320 migrations.AddField(321 model_name='historicaltbsymptoms',322 name='form_as_json',323 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),324 ),325 migrations.AddField(326 model_name='historicalthirdpartner',327 name='form_as_json',328 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),329 ),330 migrations.AddField(331 model_name='historicaltuberculosis',332 name='form_as_json',333 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),334 ),335 migrations.AddField(336 model_name='historicaluncircumcised',337 name='form_as_json',338 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),339 ),340 migrations.AddField(341 model_name='historicalviralloadresult',342 name='form_as_json',343 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),344 ),345 migrations.AddField(346 model_name='hivcareadherence',347 name='form_as_json',348 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),349 ),350 migrations.AddField(351 model_name='hivhealthcarecosts',352 name='form_as_json',353 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),354 ),355 migrations.AddField(356 model_name='hivlinkagetocare',357 name='form_as_json',358 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),359 ),360 migrations.AddField(361 model_name='hivmedicalcare',362 name='form_as_json',363 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),364 ),365 migrations.AddField(366 model_name='hivrelatedillness',367 name='form_as_json',368 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),369 ),370 migrations.AddField(371 model_name='hivresult',372 name='form_as_json',373 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),374 ),375 migrations.AddField(376 model_name='hivresultdocumentation',377 name='form_as_json',378 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),379 ),380 migrations.AddField(381 model_name='hivtested',382 name='form_as_json',383 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),384 ),385 migrations.AddField(386 model_name='hivtestinghistory',387 name='form_as_json',388 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),389 ),390 migrations.AddField(391 model_name='hivtestreview',392 name='form_as_json',393 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),394 ),395 migrations.AddField(396 model_name='hivuntested',397 name='form_as_json',398 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),399 ),400 migrations.AddField(401 model_name='hospitaladmission',402 name='form_as_json',403 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),404 ),405 migrations.AddField(406 model_name='householdcomposition',407 name='form_as_json',408 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),409 ),410 migrations.AddField(411 model_name='hypertensioncardiovascular',412 name='form_as_json',413 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),414 ),415 migrations.AddField(416 model_name='immigrationstatus',417 name='form_as_json',418 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),419 ),420 migrations.AddField(421 model_name='labourmarketwages',422 name='form_as_json',423 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),424 ),425 migrations.AddField(426 model_name='medicaldiagnoses',427 name='form_as_json',428 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),429 ),430 migrations.AddField(431 model_name='nonpregnancy',432 name='form_as_json',433 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),434 ),435 migrations.AddField(436 model_name='outpatientcare',437 name='form_as_json',438 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),439 ),440 migrations.AddField(441 model_name='participation',442 name='form_as_json',443 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),444 ),445 migrations.AddField(446 model_name='pimacd4',447 name='form_as_json',448 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),449 ),450 migrations.AddField(451 model_name='pimavl',452 name='form_as_json',453 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),454 ),455 migrations.AddField(456 model_name='positiveparticipant',457 name='form_as_json',458 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),459 ),460 migrations.AddField(461 model_name='pregnancy',462 name='form_as_json',463 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),464 ),465 migrations.AddField(466 model_name='qualityoflife',467 name='form_as_json',468 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),469 ),470 migrations.AddField(471 model_name='recentpartner',472 name='form_as_json',473 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),474 ),475 migrations.AddField(476 model_name='reproductivehealth',477 name='form_as_json',478 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),479 ),480 migrations.AddField(481 model_name='residencymobility',482 name='form_as_json',483 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),484 ),485 migrations.AddField(486 model_name='resourceutilization',487 name='form_as_json',488 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),489 ),490 migrations.AddField(491 model_name='respondent',492 name='form_as_json',493 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),494 ),495 migrations.AddField(496 model_name='secondpartner',497 name='form_as_json',498 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),499 ),500 migrations.AddField(501 model_name='sexualbehaviour',502 name='form_as_json',503 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),504 ),505 migrations.AddField(506 model_name='stigma',507 name='form_as_json',508 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),509 ),510 migrations.AddField(511 model_name='stigmaopinion',512 name='form_as_json',513 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),514 ),515 migrations.AddField(516 model_name='subjectreferral',517 name='form_as_json',518 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),519 ),520 migrations.AddField(521 model_name='substanceuse',522 name='form_as_json',523 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),524 ),525 migrations.AddField(526 model_name='tbsymptoms',527 name='form_as_json',528 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),529 ),530 migrations.AddField(531 model_name='thirdpartner',532 name='form_as_json',533 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),534 ),535 migrations.AddField(536 model_name='tuberculosis',537 name='form_as_json',538 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),539 ),540 migrations.AddField(541 model_name='uncircumcised',542 name='form_as_json',543 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),544 ),545 migrations.AddField(546 model_name='viralloadresult',547 name='form_as_json',548 field=models.TextField(editable=False, help_text='System field to save form.as_json. form.as_json should be called in modeladmin.save_model', null=True),549 ),550 migrations.AlterField(551 model_name='appointment',552 name='appt_status',553 field=models.CharField(choices=[('new', 'New'), ('in_progress', 'In Progress'), ('incomplete', 'Incomplete'), ('done', 'Done'), ('cancelled', 'Cancelled')], db_index=True, default='new', help_text="If the visit has already begun, only 'in progress' or 'incomplete' are valid options", max_length=25, verbose_name='Status'),554 ),555 migrations.AlterField(556 model_name='historicalappointment',557 name='appt_status',558 field=models.CharField(choices=[('new', 'New'), ('in_progress', 'In Progress'), ('incomplete', 'Incomplete'), ('done', 'Done'), ('cancelled', 'Cancelled')], db_index=True, default='new', help_text="If the visit has already begun, only 'in progress' or 'incomplete' are valid options", max_length=25, verbose_name='Status'),559 ),560 migrations.AlterField(561 model_name='historicalresidencymobility',562 name='permanent_resident',563 field=models.CharField(choices=[('Yes', 'Yes'), ('No', 'No')], help_text='If participant has moved into the community in the past 12 months, then since moving in has the participant typically spent more than 14 nights per month in this community.', max_length=10, verbose_name='In the past 12 months, have you typically spent 14 or more nights per month in this community? '),564 ),565 migrations.AlterField(566 model_name='hypertensioncardiovascular',567 name='bm_refused_reason',568 field=models.CharField(choices=[('afraid', 'I am afraid to know my blood pressure'), ('no_time', 'I do not have time'), ('painful', 'I was told it is painful'), ('not_ready', 'I am not ready'), ('not_sure', 'I am not sure why'), ('DWTA', "Don't want to answer"), ('N/A', 'Not applicable')], max_length=25, verbose_name='If no, provide reason'),569 ),570 migrations.AlterField(571 model_name='hypertensioncardiovascular',572 name='bp_refused_reason',573 field=models.CharField(choices=[('afraid', 'I am afraid to know my blood pressure'), ('no_time', 'I do not have time'), ('painful', 'I was told it is painful'), ('not_ready', 'I am not ready'), ('not_sure', 'I am not sure why'), ('DWTA', "Don't want to answer"), ('N/A', 'Not applicable')], max_length=25, verbose_name='If no, provide reason'),574 ),575 migrations.AlterField(576 model_name='residencymobility',577 name='permanent_resident',578 field=models.CharField(choices=[('Yes', 'Yes'), ('No', 'No')], help_text='If participant has moved into the community in the past 12 months, then since moving in has the participant typically spent more than 14 nights per month in this community.', max_length=10, verbose_name='In the past 12 months, have you typically spent 14 or more nights per month in this community? '),579 ),...

Full Screen

Full Screen

save_application_examples.py

Source:save_application_examples.py Github

copy

Full Screen

...7__copyright__ = "Copyright 2017, Tobias Hermann"8__license__ = "MIT"9__maintainer__ = "Tobias Hermann, https://github.com/Dobiasd/frugally-deep"10__email__ = "editgym@gmail.com"11def save_model(file_name_base, model):12 """Save and convert Keras model"""13 keras_file = f'{file_name_base}.h5'14 fdeep_file = f'{file_name_base}.json'15 print(f'Saving {keras_file}')16 model.save(keras_file, include_optimizer=False)17 print(f'Converting {keras_file} to {fdeep_file}.')18 convert_model.convert(keras_file, fdeep_file)19 print(f'Conversion of model {keras_file} to {fdeep_file} done.')20def main():21 """Save famous example models in Keras-h5 and fdeep-json format."""22 print('Saving application examples')23 save_model('densenet121', tf.keras.applications.densenet.DenseNet121())24 save_model('densenet169', tf.keras.applications.densenet.DenseNet169())25 save_model('densenet201', tf.keras.applications.densenet.DenseNet201())26 save_model('efficientnetb0', tf.keras.applications.efficientnet.EfficientNetB0())27 save_model('efficientnetb1', tf.keras.applications.efficientnet.EfficientNetB1())28 save_model('efficientnetb2', tf.keras.applications.efficientnet.EfficientNetB2())29 save_model('efficientnetb3', tf.keras.applications.efficientnet.EfficientNetB3())30 save_model('efficientnetb4', tf.keras.applications.efficientnet.EfficientNetB4())31 save_model('efficientnetb5', tf.keras.applications.efficientnet.EfficientNetB5())32 save_model('efficientnetb6', tf.keras.applications.efficientnet.EfficientNetB6())33 save_model('efficientnetb7', tf.keras.applications.efficientnet.EfficientNetB7())34 save_model('efficientnetv2b0', tf.keras.applications.efficientnet_v2.EfficientNetV2B0())35 save_model('efficientnetv2b1', tf.keras.applications.efficientnet_v2.EfficientNetV2B1())36 save_model('efficientnetv2b2', tf.keras.applications.efficientnet_v2.EfficientNetV2B2())37 save_model('efficientnetv2b3', tf.keras.applications.efficientnet_v2.EfficientNetV2B3())38 save_model('efficientnetv2l', tf.keras.applications.efficientnet_v2.EfficientNetV2L())39 save_model('efficientnetv2m', tf.keras.applications.efficientnet_v2.EfficientNetV2M())40 save_model('efficientnetv2s', tf.keras.applications.efficientnet_v2.EfficientNetV2S())41 # save_model('inceptionresnetv2', tf.keras.applications.inception_resnet_v2.InceptionResNetV2(input_shape=(299, 299, 3))) # lambda42 save_model('inceptionv3', tf.keras.applications.inception_v3.InceptionV3(input_shape=(299, 299, 3)))43 save_model('mobilenet', tf.keras.applications.mobilenet.MobileNet())44 save_model('mobilenetv2', tf.keras.applications.mobilenet_v2.MobileNetV2())45 save_model('nasnetlarge', tf.keras.applications.nasnet.NASNetLarge(input_shape=(331, 331, 3)))46 save_model('nasnetmobile', tf.keras.applications.nasnet.NASNetMobile(input_shape=(224, 224, 3)))47 save_model('resnet101', tf.keras.applications.ResNet101())48 save_model('resnet101v2', tf.keras.applications.ResNet101V2())49 save_model('resnet152', tf.keras.applications.ResNet152())50 save_model('resnet152v2', tf.keras.applications.ResNet152V2())51 save_model('resnet50', tf.keras.applications.ResNet50())52 save_model('resnet50v2', tf.keras.applications.ResNet50V2())53 save_model('vgg16', tf.keras.applications.vgg16.VGG16())54 save_model('vgg19', tf.keras.applications.vgg19.VGG19())55 save_model('xception', tf.keras.applications.xception.Xception(input_shape=(299, 299, 3)))56if __name__ == "__main__":...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run autotest automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful