diff --git a/InvenTree/stock/migrations/0056_auto_20201201_1844.py b/InvenTree/stock/migrations/0056_auto_20201201_1844.py index bc5f8bc4db..cc6d94848a 100644 --- a/InvenTree/stock/migrations/0056_auto_20201201_1844.py +++ b/InvenTree/stock/migrations/0056_auto_20201201_1844.py @@ -17,11 +17,11 @@ class Migration(migrations.Migration): migrations.AddField( model_name='stockitem', name='owner', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='owner_stockitems', to=settings.AUTH_USER_MODEL), + field=models.ForeignKey(blank=True, help_text='Owner (User)', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='owner_stockitems', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='stocklocation', name='owner', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='owner_stocklocations', to='auth.Group'), + field=models.ForeignKey(blank=True, help_text='Owner (Group)', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='owner_stocklocations', to='auth.Group'), ), ] diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index d42ba88e28..04db5a81de 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -45,6 +45,7 @@ class StockLocation(InvenTreeTree): """ owner = models.ForeignKey(Group, on_delete=models.SET_NULL, blank=True, null=True, + help_text='Owner (Group)', related_name='owner_stocklocations') def get_absolute_url(self): @@ -463,6 +464,7 @@ class StockItem(MPTTModel): ) owner = models.ForeignKey(User, on_delete=models.SET_NULL, blank=True, null=True, + help_text='Owner (User)', related_name='owner_stockitems') def clearAllocations(self):