From ac3a4e3de48c4e457e759eddcc3c530ec824b31c Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 14 Apr 2019 09:30:45 +1000 Subject: [PATCH] PEP fixes for /company --- InvenTree/company/forms.py | 2 +- InvenTree/company/models.py | 2 +- InvenTree/company/serializers.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/InvenTree/company/forms.py b/InvenTree/company/forms.py index ccbbea85e6..7fca7c7e72 100644 --- a/InvenTree/company/forms.py +++ b/InvenTree/company/forms.py @@ -31,4 +31,4 @@ class CompanyImageForm(HelperForm): model = Company fields = [ 'image' - ] \ No newline at end of file + ] diff --git a/InvenTree/company/models.py b/InvenTree/company/models.py index 940543f365..fc864ecc19 100644 --- a/InvenTree/company/models.py +++ b/InvenTree/company/models.py @@ -78,4 +78,4 @@ class Contact(models.Model): role = models.CharField(max_length=100, blank=True) company = models.ForeignKey(Company, related_name='contacts', - on_delete = models.CASCADE) + on_delete=models.CASCADE) diff --git a/InvenTree/company/serializers.py b/InvenTree/company/serializers.py index db3aebf4fa..a87560a873 100644 --- a/InvenTree/company/serializers.py +++ b/InvenTree/company/serializers.py @@ -15,6 +15,7 @@ class CompanyBriefSerializer(serializers.ModelSerializer): 'name' ] + class CompanySerializer(serializers.ModelSerializer): url = serializers.CharField(source='get_absolute_url', read_only=True)