2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 10:05:39 +00:00

Added ability to edit parts

- installed django_crispy_forms
- added EditPartForm in part/forms.py
- Vastly simplified parts views by using class views 
  (need to do this for the other apps too!)
This commit is contained in:
Oliver
2018-04-15 01:18:12 +10:00
parent 8578c8a1a7
commit 21e3f415c6
9 changed files with 96 additions and 62 deletions

View File

@ -73,6 +73,9 @@ class Part(models.Model):
and can be combined to form other parts
"""
def get_absolute_url(self):
return '/part/{id}/'.format(id=self.id)
# Short name of the part
name = models.CharField(max_length=100)