Allow management of all paperwork models

This commit is contained in:
Adam Goldsmith 2022-02-03 13:54:13 -05:00
parent 4fb8aa74f0
commit d34bff860a
2 changed files with 0 additions and 11 deletions

View File

@ -19,7 +19,6 @@ class CmsRedRiverVeteransScholarship(models.Model):
return f"{self.program_name} {self.member_name}"
class Meta:
managed = False
db_table = 'CMS Red River Veterans Scholarship'
@ -32,7 +31,6 @@ class CertificationDefinition(models.Model):
return f"{self.certification_name} <{self.department}>"
class Meta:
managed = False
db_table = 'Certification Definitions'
ordering = ('certification_name', 'department')
@ -52,7 +50,6 @@ class Certification(models.Model):
return f"{self.name} - {self.certification} [{self.version}]"
class Meta:
managed = False
db_table = 'Certifications'
@ -68,7 +65,6 @@ class InstructorOrVendor(models.Model):
return f"{self.name}"
class Meta:
managed = False
db_table = 'Instructors and Vendors'
@ -86,7 +82,6 @@ class SpecialProgram(models.Model):
return self.program_name
class Meta:
managed = False
db_table = 'Special_Programs'
@ -105,5 +100,4 @@ class Waiver(models.Model):
return f"{self.name} {self.date}"
class Meta:
managed = False
db_table = 'Waivers'

View File

@ -18,8 +18,3 @@ class PaperworkRouter:
obj2._meta.app_label in self.related_app_labels:
return True
return None
def allow_migrate(self, db, app_label, model_name=None, **hints):
if db == self.db:
return False
return None