Changeset - 4e131b09b538
[Not reviewed]
0 1 0
Lance Edgar - 5 years ago 2019-07-25 16:14:05
ledgar@techsupport.coop
Cleanup attribute names for Subdepartment model
1 file changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general) First comment
corepos/db/model.py
Show inline comments
 
@@ -84,11 +84,11 @@ class Subdepartment(Base):
 
        sa.ForeignKeyConstraint(['dept_ID'], ['departments.dept_no']),
 
    )
 

	
 
    subdept_no = sa.Column(sa.SmallInteger(), primary_key=True, autoincrement=False, nullable=False)
 
    number = sa.Column('subdept_no', sa.SmallInteger(), primary_key=True, autoincrement=False, nullable=False)
 

	
 
    subdept_name = sa.Column(sa.String(length=30), nullable=True)
 
    name = sa.Column('subdept_name', sa.String(length=30), nullable=True)
 

	
 
    dept_ID = sa.Column(sa.SmallInteger(), nullable=True)
 
    department_number = sa.Column('dept_ID', sa.SmallInteger(), nullable=True)
 
    department = orm.relationship(
 
        Department,
 
        doc="""
 
@@ -96,7 +96,7 @@ class Subdepartment(Base):
 
        """)
 

	
 
    def __str__(self):
 
        return self.subdept_name or ''
 
        return self.name or ''
 

	
 

	
 
@six.python_2_unicode_compatible
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now