Skip to content

Commit

Permalink
Removed: unused model funcs (except validate_vessel_length which may …
Browse files Browse the repository at this point in the history
…be needed subject to add. info)
  • Loading branch information
awf-dbca committed Dec 2, 2024
1 parent 5b1da40 commit 3800f36
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions mooringlicensing/components/proposals/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2321,7 +2321,6 @@ def mooring_changed(self, request=None):

class ProposalApplicant(RevisionedMixin):
email_user_id = models.IntegerField(null=True, blank=True)
#TODO: ideally this should be referenced by the proposal, not the other way around (no reason for a proposal to have multiple proposal applicants)
proposal = models.OneToOneField(Proposal, null=True, blank=True, on_delete=models.SET_NULL, related_name="proposal_applicant")

# Name, etc
Expand Down Expand Up @@ -4150,11 +4149,6 @@ class Meta:
verbose_name_plural = "Moorings"
app_label = 'mooringlicensing'

#TODO does not appear to be in use but may be needed? review
@property
def specification_display(self):
return self.get_mooring_bookings_mooring_specification_display()

def log_user_action(self, action, request):
return MooringUserAction.log_action(self, action, request.user.id)

Expand Down Expand Up @@ -4650,12 +4644,6 @@ def applicable_percentage(self):
else:
return self.percentage

#TODO does not appear to be used but may still be needed - review
@property
def company_ownership_latest(self):
if self.company_ownerships.count():
return self.company_ownerships.order_by('created').last()

@property
def individual_owner(self):
if self.get_latest_company_ownership():
Expand Down

0 comments on commit 3800f36

Please sign in to comment.