2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 10:35:40 +00:00

Refactor forms for editing and deleting a PartParameter

- PartParameters now loaded using the API, not pre-rendered
This commit is contained in:
Oliver
2021-07-09 01:56:04 +10:00
parent cbd291849c
commit cbf0e0bd4a
11 changed files with 141 additions and 84 deletions

View File

@ -2164,7 +2164,7 @@ class PartParameterTemplate(models.Model):
@staticmethod
def get_api_url():
return reverse('api-part-param-template-list')
return reverse('api-part-parameter-template-list')
def __str__(self):
s = str(self.name)
@ -2205,7 +2205,7 @@ class PartParameter(models.Model):
@staticmethod
def get_api_url():
return reverse('api-part-param-list')
return reverse('api-part-parameter-list')
def __str__(self):
# String representation of a PartParameter (used in the admin interface)