Roland Haroutiounian
d378a38bdf
PEP8 / PyLint on migrationhandler/django.py
9 years ago
Yann Weber
06bd3b141d
Model construct enhancement with backend and MH inheritance
Every backend and MH are now subclasses of dummy ones. This allow to check the type with issubclass.
9 years ago
Roland Haroutiounian
1f90b6f911
[#49 ] Changed the use of superiors in the migration handler
I put a for loop over the list to generate a foreign key for each item in the list.
9 years ago
Yann Weber
d199d571bd
Cleaning & commenting + adding warning
9 years ago
Yann Weber
d35fa8c56e
Cleaning and commenting
9 years ago
Yann Weber
2b6615775c
Added a django admin command to list fieldtypes
9 years ago
Yann Weber
60e23b4946
[not tested] Added 3 more fieldtypes : file, datetime, text
9 years ago
Yann Weber
4096a19d77
Updated the MH
Now it has a EmField 2 django method
9 years ago
Yann Weber
0dd07ea281
[Broken] Make the MH using the to_django method of EmField and me.json updates
Added a fieldtype varchar to me.json
There is a bug with django fields default values
9 years ago
Yann Weber
12588a37ed
Added a dryrun option to the migration handler and solved a bug in the django patch file
9 years ago
Yann Weber
e5e23defec
Now we use the register_model_state method to migrate the db
Added a patch to solve a bug in django/core/management/commands/makemigrations.py w/django/core/management/commands/makemigrations.py
See https://code.djangoproject.com/ticket/24735
9 years ago
Yann Weber
1137205c99
Solved some bugs about conditionnal models instanciation in LodelTestInstance.models
Added Lodel/settings/migrations.py that I forget
Disabled the --merge option that was given to the makemigrations command by the MH
9 years ago
Yann Weber
8bea52d740
Code cleaning and adding features to generate models in application only when not testing with the MH
9 years ago
Yann Weber
aa6e01bff0
Dirty comit of a djago MH that "works"
Code cleaning, commenting etc needed...
9 years ago
Yann Weber
f8879901f1
Using uniq_name of component for naming Django models
9 years ago
Yann Weber
74f1de0f4b
First version of the DjangoMigrationHandler. Created a LodelTestInstance for tests purpose
Some problems are still to solve (see the todo comments in EditorialModel/migrationhandler/django.py )
9 years ago