Browse Source

Minor form & model update

Sasha Pi 5 months ago
parent
commit
8bcaec63e6
2 changed files with 3 additions and 3 deletions
  1. 2 2
      forms.py
  2. 1 1
      models/webservice_running.py

+ 2 - 2
forms.py

@@ -31,7 +31,7 @@ class RegisterUserForm(UserCreationForm):
 
 class OrderLocalForm(forms.ModelForm):
     order_synced = forms.ModelChoiceField(queryset = Orders.objects.all(), label="Заказ")
-    resource_id = forms.ModelChoiceField(queryset = Resource.objects.all(), label="Ресурс")
+    #resource_id = forms.ModelChoiceField(queryset = Resource.objects.all(), label="Ресурс")
     specialization = forms.CharField(label="Специализация рабочего места")
     address = forms.CharField(label="Адрес коворкинга")
     daily_price = forms.CharField(label="Стоимость в день")
@@ -46,7 +46,7 @@ class OrderLocalForm(forms.ModelForm):
         model = OrdersLocal
         fields = [
         'order_synced',
-        'resource_id', 
+        #'resource_id', 
         'specialization',
         'address',
         'daily_price',

+ 1 - 1
models/webservice_running.py

@@ -6,7 +6,7 @@ class OrdersLocal(models.Model):
     OrdersLocal - таблица с заказами
     """
     order_synced = models.ForeignKey(Orders, on_delete=models.DO_NOTHING, help_text="ID заказа в 'Orders'")
-    resource_id = models.ForeignKey(Resource, null=True, on_delete=models.DO_NOTHING, help_text="ID ресурса")
+    #resource_id = models.ForeignKey(Resource, null=True, on_delete=models.DO_NOTHING, help_text="ID ресурса")
 
     address = models.CharField(null=True, max_length=150, help_text="Адрес коворкинга")
     specialization = models.CharField(null=True, max_length=150, help_text="Специализация")