Allow management of all paperwork models
This commit is contained in:
parent
4fb8aa74f0
commit
d34bff860a
@ -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'
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user