minor fixes

This commit is contained in:
Gowtham Sai 2022-07-21 16:38:37 +05:30
parent a3e4077723
commit cd7366fcc9
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ class Placement(models.Model):
created_at = models.DateTimeField(blank=False, default=None, null=True)
updated_at = models.DateTimeField(blank=False, default=None, null=True)
changed_by = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True)
history = HistoricalRecords()
history = HistoricalRecords(user_model=User)
def format(self):
if self.company_name is not None:
self.company_name = self.company_name.strip()[:JNF_SMALLTEXT_MAX_CHARACTER_COUNT]