Michael Price
53239385ae
Add the "to=" keyword argument to all ForeignKey, ManayToMany and OneToOne Fields.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:49:04 -04:00
Michael Price
55a4798ac3
Silence the UnorderedObjectListWarning warning for the checkouts app.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:01:21 -04:00
Roberto Rosario
f09321f6ab
Fix deprecation warnings for Django 1.11 and Django 2.0.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-21 00:25:18 -04:00
Roberto Rosario
6c6ca38374
Replace all instances of unicode only handling to use force_text.
...
Replace all __unicode__ methods to __str__ and the
@python_2_unicode_compatible decorator.
Replace all instance of smart_str, smart_unicode, force_uncode
with force_text.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-05 15:03:24 -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
da4c41c5b2
Change the way new document version are blocked, moving the logic to the documents app from the checkouts app signal handler. Disable the upload new document version button and have the new version upload view redirect to the document version list with a message. GitLab issue #231 .
2015-10-23 06:06:59 -04:00
Roberto Rosario
683e54fea1
Replace unused lists with tuples.
2015-08-19 13:57:38 -04:00
Roberto Rosario
4527563d89
PEP8 cleanups, specially E501 line too long.
2015-07-22 18:21:37 -04:00
Roberto Rosario
e891fe9525
PEP8 cleanups and code style cleanups.
2015-07-10 17:19:36 -04:00
Roberto Rosario
17c454a53a
Add checkout expiration time validation. Sort field arguments according to style guide.
2015-07-07 20:48:36 -04:00
Roberto Rosario
a54f6ea5f2
Add reminder
2015-07-04 03:09:50 -04:00
Roberto Rosario
e4623fadcd
PEP8 cleanups
2015-06-23 02:23:23 -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
8e62c21bb1
Add missing return statement
2015-04-06 01:53:37 -04:00
Roberto Rosario
4d2891b361
Remove use of the permalink decorator
2015-04-06 01:36:22 -04:00
Roberto Rosario
26d64c45f5
Add the @python_2_unicode_compatible to all models. Closes issue #67
2015-04-01 02:40:19 -04:00
Roberto Rosario
d59ea3ede2
Add from __future__ import unicode_literals, issue #37
2015-01-19 04:06:40 -04:00
Roberto Rosario
bbab21d228
Initial commit of the new events app
2015-01-10 19:01:57 -04:00
Roberto Rosario
e6dbb4cd70
Perform validation at the model
2014-11-04 17:36:34 -04:00
Roberto Rosario
4211f048a0
Explicit new checkout check, remove unused import
2014-10-18 00:45:07 -04:00
Roberto Rosario
1b3233a1b0
Use auto_now_add
2014-10-18 00:42:45 -04:00
Roberto Rosario
a75a4edf21
Issue #39 , Finish capitalizing source text messages
2014-10-10 02:29:37 -04:00
Roberto Rosario
d7aef36442
Add url namespacing to the checkouts, linking, metadata, sources and tags apps
2014-08-26 04:06:09 -04:00
Roberto Rosario
6a659741af
PEP8 cleanups
2014-06-30 00:57:53 -04:00
Roberto Rosario
d640eacec8
Update usage of datetime.now to Django timezone aware now()
2014-06-29 17:00:07 -04:00
Roberto Rosario
ec1745b50b
Initial changes to support the new Django 1.6 project structure
2014-06-15 13:13:21 +02:00