mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes for /company
This commit is contained in:
parent
b9f23554a5
commit
ac3a4e3de4
@ -31,4 +31,4 @@ class CompanyImageForm(HelperForm):
|
||||
model = Company
|
||||
fields = [
|
||||
'image'
|
||||
]
|
||||
]
|
||||
|
@ -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)
|
||||
|
@ -15,6 +15,7 @@ class CompanyBriefSerializer(serializers.ModelSerializer):
|
||||
'name'
|
||||
]
|
||||
|
||||
|
||||
class CompanySerializer(serializers.ModelSerializer):
|
||||
|
||||
url = serializers.CharField(source='get_absolute_url', read_only=True)
|
||||
|
Loading…
Reference in New Issue
Block a user