Good day! I'm trying to understand if there is a proper way of adding name_first & name_last Fields in the Customer Model into name_full Field. The name_full Field will be used as ftring renurn value for the Model. Relation with the Order Model via Foreign Key.
class Customer(models.Model):
name_first = models.CharField(max_length=30, null=False, blank=False)
name_last = models.CharField(max_length=30, null=False, blank=False)
# name_full = ... name_first+name_last
def __str__(self):
return self.name_full
I've tried looking for similar question and there is a slight chance of not knowing how to ask a proper question) Cheers!