Merge "Removed redundant code from models module"
This commit is contained in:
commit
7a08d3b81f
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user