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:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user