<commit_before>from django.db import models
from contact.models import Organization
from product.models import Product

# Create your models here.

class Supplier(Organization):
    products = models.ManyToManyField(Product)

    def __str__(self):
        return "{}".format(self.name)
<commit_msg>Added get_absolute_url() to supplier model.<commit_after>from django.db import models
from django.urls import reverse
from contact.models import Organization
from product.models import Product

# Create your models here.

class Supplier(Organization):
    products = models.ManyToManyField(Product)

    def get_absolute_url(self):
        return reverse('supplier-list')

    def __str__(self):
        return "{}".format(self.name)

{'fraction_non_alphanumeric': 0.08731241473396999, 'fraction_numerical': 0.0, 'mean_word_length': 4.518796992481203, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5067391', 'n_tokens_mistral': 199, 'n_tokens_neox': 196, 'n_words': 60}