Tweak model options

This commit is contained in:
Roberto Rosario
2012-06-12 22:43:28 -04:00
parent 03cd450839
commit 6f108c32f5

View File

@@ -19,8 +19,8 @@ class DocumentCheckout(models.Model):
Model to store the state and information of a document checkout
"""
document = models.ForeignKey(Document, verbose_name=_(u'document'), unique=True)
checkout_datetime = models.DateTimeField(verbose_name=_(u'checkout date and time'), editable=False, default=datetime.datetime.now())
expiration_datetime = models.DateTimeField(verbose_name=_(u'checkout expiration date and time'), default=datetime.datetime.now())
checkout_datetime = models.DateTimeField(verbose_name=_(u'checkout date and time'), default=datetime.datetime.now())
expiration_datetime = models.DateTimeField(verbose_name=_(u'checkout expiration date and time'))
block_new_version = models.BooleanField(verbose_name=_(u'block new version upload'), help_text=_(u'Do not allow new version of this document to be uploaded.'))
#block_metadata
#block_editing