Merge "Removed redundant code from models module"

This commit is contained in:
Jenkins 2015-04-05 18:57:12 +00:00 committed by Gerrit Code Review
commit 7a08d3b81f

View File

@ -179,9 +179,6 @@ class ApiStats(Base, TimestampMixin):
cpu_count = sa.Column(sa.Integer())
cpu_percent = sa.Column(sa.Float())
def to_dict(self):
dictionary = super(ApiStats, self).to_dict()
return dictionary
package_to_category = sa.Table('package_to_category',
Base.metadata,
@ -219,10 +216,6 @@ class Instance(Base):
unit_count = sa.Column('unit_count', sa.Integer())
tenant_id = sa.Column('tenant_id', sa.String(36), nullable=False)
def to_dict(self):
dictionary = super(Instance, self).to_dict()
return dictionary
class Package(Base, TimestampMixin):
"""Represents a meta information about application package."""
@ -285,10 +278,6 @@ class Category(Base, TimestampMixin):
default=uuidutils.generate_uuid)
name = sa.Column(sa.String(80), nullable=False, index=True, unique=True)
def to_dict(self):
dictionary = super(Category, self).to_dict()
return dictionary
class Tag(Base, TimestampMixin):
"""Represents tags in the datastore."""