from django.forms import ModelForm
from .models import Drug


class AddDrugsForm(ModelForm):
    class Meta:
        model = Drug
        fields = ['id', 'friendlyName', 'availability',  'description']
        managed = False

@@ -53,16 +53,41 @@
 rt Drug%0A
+from django import forms%0A
 %0A%0Aclass 
@@ -111,16 +111,132 @@
 lForm):%0A
+    # name = forms.CharField(initial='class')%0A    days = forms.ChoiceField(choices=%5B(x, x) for x in range(1, 32)%5D)%0A%0A
     clas
@@ -319,17 +319,16 @@
 bility',
- 
  'descri
@@ -339,28 +339,4 @@
 n'%5D%0A
-        managed = False%0A

update add drug form