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}"
|
return f"{self.program_name} {self.member_name}"
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
managed = False
|
|
||||||
db_table = 'CMS Red River Veterans Scholarship'
|
db_table = 'CMS Red River Veterans Scholarship'
|
||||||
|
|
||||||
|
|
||||||
@ -32,7 +31,6 @@ class CertificationDefinition(models.Model):
|
|||||||
return f"{self.certification_name} <{self.department}>"
|
return f"{self.certification_name} <{self.department}>"
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
managed = False
|
|
||||||
db_table = 'Certification Definitions'
|
db_table = 'Certification Definitions'
|
||||||
ordering = ('certification_name', 'department')
|
ordering = ('certification_name', 'department')
|
||||||
|
|
||||||
@ -52,7 +50,6 @@ class Certification(models.Model):
|
|||||||
return f"{self.name} - {self.certification} [{self.version}]"
|
return f"{self.name} - {self.certification} [{self.version}]"
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
managed = False
|
|
||||||
db_table = 'Certifications'
|
db_table = 'Certifications'
|
||||||
|
|
||||||
|
|
||||||
@ -68,7 +65,6 @@ class InstructorOrVendor(models.Model):
|
|||||||
return f"{self.name}"
|
return f"{self.name}"
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
managed = False
|
|
||||||
db_table = 'Instructors and Vendors'
|
db_table = 'Instructors and Vendors'
|
||||||
|
|
||||||
|
|
||||||
@ -86,7 +82,6 @@ class SpecialProgram(models.Model):
|
|||||||
return self.program_name
|
return self.program_name
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
managed = False
|
|
||||||
db_table = 'Special_Programs'
|
db_table = 'Special_Programs'
|
||||||
|
|
||||||
|
|
||||||
@ -105,5 +100,4 @@ class Waiver(models.Model):
|
|||||||
return f"{self.name} {self.date}"
|
return f"{self.name} {self.date}"
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
managed = False
|
|
||||||
db_table = 'Waivers'
|
db_table = 'Waivers'
|
||||||
|
@ -18,8 +18,3 @@ class PaperworkRouter:
|
|||||||
obj2._meta.app_label in self.related_app_labels:
|
obj2._meta.app_label in self.related_app_labels:
|
||||||
return True
|
return True
|
||||||
return None
|
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