mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Style fixes
This commit is contained in:
		| @@ -1034,7 +1034,8 @@ class PartStar(models.Model): | |||||||
|  |  | ||||||
|  |  | ||||||
| class PartParameterTemplate(models.Model): | class PartParameterTemplate(models.Model): | ||||||
|     """ A PartParameterTemplate provides a template for key:value pairs for extra  |     """ | ||||||
|  |     A PartParameterTemplate provides a template for key:value pairs for extra | ||||||
|     parameters fields/values to be added to a Part. |     parameters fields/values to be added to a Part. | ||||||
|     This allows users to arbitrarily assign data fields to a Part |     This allows users to arbitrarily assign data fields to a Part | ||||||
|     beyond the built-in attributes. |     beyond the built-in attributes. | ||||||
| @@ -1077,7 +1078,8 @@ class PartParameterTemplate(models.Model): | |||||||
|  |  | ||||||
|  |  | ||||||
| class PartParameter(models.Model): | class PartParameter(models.Model): | ||||||
|     """ A PartParameter is a specific instance of a PartParameterTemplate. |     """ | ||||||
|  |     A PartParameter is a specific instance of a PartParameterTemplate. It assigns a particular parameter <key:value> pair to a part. | ||||||
|  |  | ||||||
|     Attributes: |     Attributes: | ||||||
|         part: Reference to a single Part object |         part: Reference to a single Part object | ||||||
| @@ -1098,14 +1100,9 @@ class PartParameter(models.Model): | |||||||
|         unique_together = ('part', 'template') |         unique_together = ('part', 'template') | ||||||
|  |  | ||||||
|     part = models.ForeignKey(Part, on_delete=models.CASCADE, |     part = models.ForeignKey(Part, on_delete=models.CASCADE, | ||||||
|         related_name='parameters', |                              related_name='parameters', help_text='Parent Part') | ||||||
|         help_text='Parent Part', |  | ||||||
|     ) |  | ||||||
|  |  | ||||||
|     template = models.ForeignKey(PartParameterTemplate, on_delete=models.CASCADE, |     template = models.ForeignKey(PartParameterTemplate, on_delete=models.CASCADE, related_name='instances', help_text='Parameter Template') | ||||||
|         related_name='instances', |  | ||||||
|         help_text='Parameter Template' |  | ||||||
|     ) |  | ||||||
|  |  | ||||||
|     data = models.CharField(max_length=500, help_text='Parameter Value') |     data = models.CharField(max_length=500, help_text='Parameter Value') | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user