Silence UnorderedObjectListWarning warnings.
Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
committed by
Roberto Rosario
parent
55a4798ac3
commit
61cb9ac524
19
mayan/apps/acls/migrations/0002_auto_20180310_1715.py
Normal file
19
mayan/apps/acls/migrations/0002_auto_20180310_1715.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.10 on 2018-03-10 17:15
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('acls', '0001_squashed_0002_auto_20150703_0513'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='accesscontrollist',
|
||||
options={'ordering': ('pk',), 'verbose_name': 'Access entry', 'verbose_name_plural': 'Access entries'},
|
||||
),
|
||||
]
|
||||
19
mayan/apps/checkouts/migrations/0007_auto_20180310_1715.py
Normal file
19
mayan/apps/checkouts/migrations/0007_auto_20180310_1715.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.10 on 2018-03-10 17:15
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('checkouts', '0006_newversionblock'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='documentcheckout',
|
||||
options={'ordering': ('pk',), 'verbose_name': 'Document checkout', 'verbose_name_plural': 'Document checkouts'},
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.10 on 2018-03-10 17:17
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('document_states', '0009_auto_20170807_0612'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='workflowinstancelogentry',
|
||||
options={'ordering': ('datetime',), 'verbose_name': 'Workflow instance log entry', 'verbose_name_plural': 'Workflow instance log entries'},
|
||||
),
|
||||
]
|
||||
@@ -455,6 +455,7 @@ class WorkflowInstanceLogEntry(models.Model):
|
||||
return force_text(self.transition)
|
||||
|
||||
class Meta:
|
||||
ordering = ('datetime',)
|
||||
verbose_name = _('Workflow instance log entry')
|
||||
verbose_name_plural = _('Workflow instance log entries')
|
||||
|
||||
|
||||
19
mayan/apps/metadata/migrations/0008_auto_20180310_1715.py
Normal file
19
mayan/apps/metadata/migrations/0008_auto_20180310_1715.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.10 on 2018-03-10 17:15
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('metadata', '0007_auto_20150918_0800'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='documentmetadata',
|
||||
options={'ordering': ('metadata_type',), 'verbose_name': 'Document metadata', 'verbose_name_plural': 'Document metadata'},
|
||||
),
|
||||
]
|
||||
@@ -162,6 +162,12 @@ class DocumentMetadata(models.Model):
|
||||
verbose_name=_('Value')
|
||||
)
|
||||
|
||||
class Meta:
|
||||
ordering = ('metadata_type',)
|
||||
unique_together = ('document', 'metadata_type')
|
||||
verbose_name = _('Document metadata')
|
||||
verbose_name_plural = _('Document metadata')
|
||||
|
||||
def __str__(self):
|
||||
return force_text(self.metadata_type)
|
||||
|
||||
@@ -193,11 +199,6 @@ class DocumentMetadata(models.Model):
|
||||
document_type=self.document.document_type, value=self.value
|
||||
)
|
||||
|
||||
class Meta:
|
||||
unique_together = ('document', 'metadata_type')
|
||||
verbose_name = _('Document metadata')
|
||||
verbose_name_plural = _('Document metadata')
|
||||
|
||||
@property
|
||||
def is_required(self):
|
||||
return self.metadata_type.get_required_for(
|
||||
@@ -223,6 +224,7 @@ class DocumentTypeMetadataType(models.Model):
|
||||
return force_text(self.metadata_type)
|
||||
|
||||
class Meta:
|
||||
ordering = ('metadata_type',)
|
||||
unique_together = ('document_type', 'metadata_type')
|
||||
verbose_name = _('Document type metadata type options')
|
||||
verbose_name_plural = _('Document type metadata types options')
|
||||
|
||||
Reference in New Issue
Block a user