Roberto Rosario
503af584d5
Migrations: Remove superfluous code comments
...
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2018-12-14 02:35:24 -04:00
Roberto Rosario
255b1c75ea
Style: Prepend "operation_" to data migrations
...
Prepend "operation_" to the data migration functions
for clear purpose. Add keyword arguments to the RunPython
migration opration.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2018-12-07 17:28:22 -04:00
Roberto Rosario
55a30379bd
Various apps: Sort imports
...
Run imports as per Mayan EDMS best practices.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2018-12-06 01:57:24 -04:00
Roberto Rosario
eda8d18146
Database access in data migrations defaults to the 'default' database. Force it to the user selected database instead.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-19 20:53:04 -04:00
Michael Price
61cb9ac524
Silence UnorderedObjectListWarning warnings.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:01:27 -04:00
Roberto Rosario
1e194e04fa
Move new version creation blocking from the documents app to the checkouts app.
...
Closes GitLab #294 .
2016-12-22 01:45:43 -04:00
Roberto Rosario
5ec3025120
Use OneToOneField instead of a ForeignKey with unique=True.
2016-01-22 04:01:15 -04:00
Roberto Rosario
68f3c6eee7
PEP8 cleanups.
2015-08-19 14:50:44 -04:00
Roberto Rosario
e891fe9525
PEP8 cleanups and code style cleanups.
2015-07-10 17:19:36 -04:00
Roberto Rosario
91150a7f51
Change the user_object of the DocumentCheckout model to be just a FK to the User model
2015-06-16 23:35:23 -04:00
Roberto Rosario
302411074b
Add first set of Django 1.7 app migrations
2015-03-30 05:08:50 -04:00
Roberto Rosario
2441d232ab
Issue #86 , move south migrations from the 'migrations' to the 'south_migrations' directory
2014-10-21 13:23:05 -04:00
Roberto Rosario
1b3233a1b0
Use auto_now_add
2014-10-18 00:42:45 -04:00
Roberto Rosario
657b9106c2
Use timezone aware datetime in migration
2014-07-11 01:56:54 -04:00
Roberto Rosario
3bed82fc16
PEP8 cleanup, unused imports, missing imports, style cleanups
2014-07-10 02:45:19 -04:00
Roberto Rosario
6a659741af
PEP8 cleanups
2014-06-30 00:57:53 -04:00
Roberto Rosario
ec1745b50b
Initial changes to support the new Django 1.6 project structure
2014-06-15 13:13:21 +02:00