Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
Display all data in the model and use checkbox to bulk edit all the data
I am trying to create a page that can allow user to use check boxes edit multiple row of data. I know js can finish the job but I only have limited knowledge about js.. Is there a way to use Django Form and Widgets to accomplish this? -
ِccessing the profile page for the selected username
I have signed into my site as admin or whoever the account.I have many usernames on the my site homepage but when I click on one of the them to view his profile ,it always give me the profile of the admin or whoever the person who is currently logged in. chat.html <div class="col-md-8"> <div class="panel panel-default"> <div class="panel-body"> {% if user.is_authenticated %} {% if messages %} <ul> {% for message in messages %} <li><a href="{% url 'profile' %}"> {{ message.author }}</a>:{{ message.content }} </li> {% endfor %} </ul> {% endif %} {% endif %} </div> </div> </div> this home template models.py from django.db import models from django.contrib.auth.models import User from PIL import Image class Profile(models.Model): user=models.OneToOneField(User,on_delete=models.CASCADE) image=models.ImageField(default='default.jpg',upload_to='profile_pics') def __str__(self): return f'{self.user.username}-{self.types}' def save(self, force_insert=False, force_update=False, using=None, update_fields=None): super().save() img=Image.open(self.image.path) if img.height>175 or img.width>175: output_size=(175,175) img.thumbnail(output_size) img.save(self.image.path) this is profile model for any user..How to can i view any profile for any user on my webpage? -
Django Migration from 2.0 to 2.2
While Migrating the Django Facing issue related to migration : python manage.py migrate demo --database demo Getting Error related to : ValueError: Cannot assign "": the current database router prevents this relation. Detailed Error log : https://dpaste.de/UHwQ Tested Django Version: After Django version 2.0.13, facing this issue. Let me know what could be the reason for this? -
Django ORM QUERY Adjacent row sum
In my database I'm storing data as below: id amt -- ------- 1 100 2 -50 3 100 4 -100 5 200 I want to get output like below id amt balance -- ----- ------- 1 100 100 2 -50 50 3 100 150 4 -100 50 5 200 250 How to do with in django orm -
Django: Dockerfile error with collectsatic
I am trying to deploy Django application with Docker and Jenkins. I get the error "msg": "Error building registry.docker.si/... - code: 1 message: The command '/bin/sh -c if [ ! -d ./static ]; then mkdir static; fi && ./manage.py collectstatic --no-input' returned a non-zero code: 1" } The Dockerfile is: FROM python:3.6 RUN apt-get update && apt-get install -y python-dev && apt-get install -y libldap2-dev && apt-get install -y libsasl2-dev && apt-get install -y libssl-dev && apt-get install -y sasl2-bin ENV PYTHONUNBUFFERED 1 WORKDIR /usr/src/app COPY requirements.txt ./ RUN pip install --no-cache-dir --upgrade pip RUN pip install --no-cache-dir --upgrade setuptools RUN pip install --no-cache-dir -r requirements.txt COPY . . RUN chmod u+rwx manage.py RUN if [ ! -d ./static ]; then mkdir static; fi && ./manage.py collectstatic --no-input RUN chown -R 10000:10000 ./ EXPOSE 8080 CMD ["sh", "./run-django.sh"] My problem is that, with same dockerfile other Django project deploy without any problem... -
Django. Difficult queryset
I have user like this: { "name": "test" "parent_users": [ 1, 2 ] } I need to display the user "name": "test" two times becouse he has two parents, for example i need to display the user "name": "test" like this: { "name": "test" "parent_user": 1 } { "name": "test" "parent_user": 2 } My serializer class CommitmentListSerializer(serializers.ModelSerializer): class Meta: model = User fields = ('id', 'email', 'first_name', 'last_name', 'parent_user',) I cant understand how i can to create quesryset for this -
Filter Queryset in Wagtail ModelAdmin
I have a menu item that contains 4 resources, each language, if the user goes to EnResources i would like it to only display the Resources where the language field contains 'en' and the same with the other languages. So the issue is it is only ever getting the en items, no matter which menu item i choose its always the en items, not the FrResources or anything. Models.py class Resource(models.Model): language = models.CharField(max_length=255, choices=constants.LANGUAGES) title = models.CharField(blank=True, max_length=255) resource_type = models.CharField( choices=constants.RESOURCE_TYPES, max_length=255 ) description = models.TextField() link = StreamField( blocks.BasicLinkBlock(max_num=1), blank=True, ) panels = [ FieldPanel('language'), FieldPanel('title'), FieldPanel('resource_type'), FieldPanel('description'), StreamFieldPanel('link'), ] constants.py RESOURCE_TYPES = ( ('Documentation', 'Documentation'), ('Whitepaper', 'Whitepaper'), ('Webinar', 'Webinar'), ('Video', 'Video'), ('Testimonial', 'Testimonial'), ('ProductSheet', 'ProductSheet'), ) LANGUAGES = ( ('en', 'English'), ('fr', 'French'), ('be-fr', 'Belgique'), ('be-nl', 'Nederlands'), ) WagtailHooks.py model = models.Resource menu_label = 'Resources' menu_icon = 'snippet' # change as required list_display = ( 'resource_type', 'title', ) list_filter = ( 'resource_type', ) search_fields = ( 'title', 'business_email', ) class EnResourceAdmin(ResourceAdmin): menu_label = 'English Resources' def get_queryset(self, request): qs = super().get_queryset(request) return qs.filter(language='en') class FrResourceAdmin(ResourceAdmin): menu_label = 'French Resources' def get_queryset(self, request): qs = super().get_queryset(request) return qs.filter(language='fr') class BeResourceAdmin(ResourceAdmin): menu_label = 'Belgium Resources' def get_queryset(self, request): … -
Email for Reset Password not working (smtpd server)
i'm trying to send a password reset email over smtpd but with no luck. It used to work until I created a namespace for my app. accounts/url.py: app_name = 'accounts' url patterns [ path('reset-password/', PasswordResetView.as_view( template_name='accounts/reset_password.html', success_url=reverse_lazy('accounts:password_reset_done')), name='reset-password'), path('reset-password/done/', PasswordResetDoneView.as_view(), name='password_reset_done'), path('reset-password/confirm/<uidb64>/<token>/', PasswordResetConfirmView.as_view( success_url=reverse_lazy('accounts:password_reset_complete')), name='password_reset_confirm'), path('reset-password/complete/', PasswordResetCompleteView.as_view(), name='password_reset_complete'), ] main_urls.py: urlpatterns = [ path('', views.login_redirect, name='login_redirect'), path('admin/', admin.site.urls), path('accounts/', include('accounts.urls', namespace='accounts')), path('home/', include('home.urls')), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) If there is anything else you'd like me to add. Please let me know. Thanks -
Select an expiredate field
I have created an expiredate field which is generated automaticly based on the registerdate field Ive tried a regular query just like i would use for any field (it is mentioned below) this is the model: class UserProfile(models.Model): course = models.ForeignKey(Category, on_delete=models.DO_NOTHING) phonenumber = models.CharField(max_length=50) registerdate = models.DateTimeField() expiredate = timezone.now().date() + timedelta(days= 70) user = models.OneToOneField(User, on_delete = models.CASCADE) def __str__(self): return "{}" .format(self.user) and this is the query i'm trying to use: expire = UserProfile.objects.values('expiredate') I simply want to select the expiredate and use it on my views.py function but the query generates an error: 'Cannot resolve keyword 'expiredate' into field. Choices are: course,course_id, id, phonenumber, registerdate, user, user_id' -
How to pass form fields into 'templated' HTML file
I would like to get form data from a pre-built HTML template using a Django form without changing the display. I know I could use something like: name = request.POST.get('first_name') But would like to handle the data using a ModelForm forms.py class BioDataForm(forms.ModelForm): first_name = forms.CharField(max_length=100, label='first_name') last_name =forms.CharField(max_length=100, label='last_name') mobile = forms.CharField(max_length=100, label='mobile_number') email = forms.EmailField(max_length=100, label='personal_email') gender = forms.CharField(max_length=100, widget=forms.Select(attrs={'class': 'form-control', 'id': 'gender'})) marital_status = forms.CharField(max_length=100, widget=forms.Select(attrs={'class': 'form-control', 'id': 'marital_status'})) date_of_birth = forms.DateField(input_formats=['%Y-%m-%d'], widget=forms.SelectDateWidget()) address = forms.CharField(max_length=100) class Meta: model = BioData exclude = ('state',) fields = ['first_name', 'last_name', 'mobile', 'email', 'gender', 'marital_status', 'date_of_birth', 'address'] Sample HTML <div class="row form-group"> <div class="col-md-6 col-sm-12 margin-bottom-20-m"> <label for="first_name" class="form-control-label kt-black-text">First Name</label> <input type="text" class="form-control" id="first_name" name="e_first_name" required> </div> <div class="col-md-6 col-sm-12"> <label for="last_name" class="form-control-label kt-black-text">Last Name</label> <input type="text" class="form-control" id="last_name" name="e_last_name" required> </div> </div> -
Django LAN server takes too long to respond on other devices on my network
I am trying to run a local server just on my network so any devices on my network can access the django website. The django website will stream live video from the webcam to any device using cv2. I dont think this is the problem because a normal http response also creates the following error. When I access the website from the host machine it loads and I get a live feed of the webcam but when access the website from my phone connected to the same network I get this error "HostMachineIP took to long to respond" (the HostMachineIP is the adress that I get from network settings on my host). I have tried using just a normal http response instead of the live stream and that also doesnt display on my other device. I use the following command from powershell to run the server: python manage.py runserver 0.0.0.0:8080 "HostMachineIP took to long to respond" (the HostMachineIP is the adress that I get from network settings on my host). I want the website to load on all the devices connected to my home network not just the host machine. -
How can i store credentials in my Django project?
I'm building a project where i will be able to save an API key, then this key will be used to perform some operations on my site. Obviously, no one should access the key, except my code that will perform some tasks using those keys. At the actual moment, the keys are stored on my database and they are not encrypted, but now i would like to make this system as safe as possible, so that even if someone has access to my credentials, he can't use it. The problem is that i know very little about security and encription. My first thought was to encrypt the keys, but i don't really know how to do that. Basically, that's how it should work: the keys are submitted using a form -> the keys must be encrypted and saved on my db -> later on, when i need to perform a task, those keys should be decrypted in order to do what i need Is my approach correct? And how can i accomplish that in Django? Here is my current view: def homepage(request): if request.method == 'POST': # create a form instance and populate it with data from the request: form … -
Leaflet map has incorrect dimensions within Django template blocks
I am using a leaflet map on a website and I am trying to use the template blocks within Django to have a more flexible webpage design whilst keeping common elements. However, when I attempted to implement this, my leaflet map changed dimensions for no apparent reason. The code is the same except it is now within template blocks. This is what the site should look like (Ignore the grey background, it's just due to the scrolling screenshot) This is what it looks like with the template blocks Here is the Github of the project. The correct look of the webpage is the accueil.html file and the new version is based on base.html and accueil_base.html. I haven't been able to determine what is causing the dimensions issue. Even when I inspect the map element, all the map components are there, only the dimensions are modified. My apologies regarding the lack of code in this post (I felt it would make this question much longer than needed). I also feel you may have issues recreating my problem since you don't have a database with the corresponding points. Thanks in advance and please tell me if you need any precise information regarding … -
How can I hide API-Keys in JS?
I use Django on server side currently the project is running on Django development server but I plan to put it to production using some cloud service. -
How to pass dynamic url of selected value from dropdwonlist in django
I have a dropdwon list..when i click on that i got a value like some name..now i want that name pass as a url in django Views.py @csrf_exempt def forecasting(request): Category = category.objects.all() return render(request, "myapp/casting.html",{'Category':Category}) @csrf_exempt def Prediction(request,name): Category1 = category.objects.get(Category=name) print(Category1.Category) return render(request, "myapp/casting.html", {'Category1': Category1}) Models.py class category(models.Model): Category = models.CharField(max_length=50) def __str__(self): return self.Category Html file <form id="myform" method="post" name="myform" action="/Prediction/{{Category1.Category}}"> <div class="col-lg-3 col-md-3"> <h3> Select Category</h3> </div> <div class="col-lg-3 col-md-3"> {%csrf_token%} <select id="Category" name="catagery_id" onchange="myform.submit()"> <option value="">Select</option> {% for Category in Category %} <option value="{{ Category.Category }}">{{ Category.Category }}</option> {% for message in messages %} <div> <p>{{message|safe}}</p> </div> {% endfor %} {% endfor %} </select> </div> <ul class="messages"> {% for message in messages %} <p {% if message.tags %} class="{{ message.tags }}" {% endif %}>{{ message }}</p> {% endfor %} </ul> <div class="col-lg-3 col-md-3"> </div> </form> I have no idea how to do this..because value come when i submit the form..i am new to this please help me out -
Not unable to display my CreateForm in django
I have created a form and a view in django and I'm trying to display it in the html but it isn't loading anything and don't know why alumno2.html {% block header %} <header class="masthead bg-white text-dark text-uppercase"> <div class="container"> <h3 class="text-center">Añadir alumno</h3> <form method="post"> {% csrf_token %} {{ form.as_p }} <button class="btn btn-secondary" type="submit">Guardar</button> </form> </div> </header> {% endblock %} form.py class AlumnoForm2(forms.ModelForm): class Meta: model = Alumno #fields = ['dni', 'nombre', 'apellido1', 'apellido2','email','repetidor'] fields = ['dni', 'nombre', 'apellido1', 'apellido2','email','repetidor','curs'] labels = { 'dni': 'dni', 'nombre': 'nombre', 'apellido1': 'Primer Apellido', 'apellido2': 'Segundo Apellido', 'email': 'Email', 'repetidor': 'repetidor', 'curs': 'curs' } widgets = { 'dni': forms.TextInput(attrs={'class': 'form-control'}), 'nombre': forms.TextInput(attrs={'class': 'form-control'}), 'apellido1': forms.TextInput(attrs={'class': 'form-control'}), 'apellido2': forms.TextInput(attrs={'class': 'form-control'}), 'email': forms.TextInput(attrs={'class': 'form-control'}), 'repetidor': forms.CheckboxInput(attrs={'class':'form-control-checkbox','id': 'repetidor'}), 'curs':forms.Select(attrs={'class': 'form-control'}), } view.py class crea_alumno(CreateView): model = Alumno form_class = AlumnoForm2 template_name = '/alumno2.html' success_url = reverse_lazy('mostrar_alumnos') url.py url(r'^alumno2/$', crea_alumno.as_view(),name='alumno2'), -
How to dynamically create <select> options
I'm trying to make a element that will dynamically changes when onchange event occurs. How to set data from database only for an option? I post an image of this. https://imgur.com/AplqAPg views.py class ProfileUpdateView(generic.UpdateView): model = Author form_class = AuthorForm template_name = 'people/update_profile.html' def form_valid(self, form): if form.save(self): return super(ProfileUpdateView, self).form_valid(form) else: return self def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) university = Faculty.objects.only('university') context['university'] = university return context profile.html <div id="university-select" class="form-group"> <label for="university">University:</label> <select class="form-control "onchange="School_query(this.options[this.selectedIndex].value)"> {% for uni in university %} <option>{{ uni }}</option> {% endfor %} </select> </div> <div class="form-group"> <label for="school">School:</label> <select class="form-control" id="school-select"> </select> </div> <script> function School_query(selected){ document.getElementById("school-input").disabled = false; {% school_query selected as schools %} var option = document.createElement("option"); option.text = "Test1"; option.value = "Test1"; var select = document.getElementById("school-select"); select.appendChild(option); }; </script> faculty_query_tags.py @register.simple_tag def school_query(university): schools = Faculty.objects.only("school") print(university) return schools The only thing i was found are django tags but its not working. Thanks for any help!! -
Django Template's Date Filter Causes Form Values To Disappear
I'm facing a weird dilemma. Here's my ModelForm: Django date:"Y/m/d" filter prevents the form values to show up if the form is not validated. DATE_INPUT_FORMATS = ['%Y/%m/%d', '%Y-%m-%d'] class PromotionModelForm(ModelForm): last_promotion_date = forms.DateField(input_formats=DATE_INPUT_FORMATS) class Meta: model = Professor fields = ['last_promotion_date'] Here's my view: def first-view(request): professor = get_object_or_404(Professor, user__username=request.user) form = SomeForm(request.POST or None, instance=professor) if form.is_valid(): form.save() context = {"form": form} return redirect('/first-view') else: return render(request, 'core/first-view.html', context={'form':form}) and here's the template: <form class="inner_box" method="POST" action="{% url 'core:first_view' %}" name=""> {% csrf_token %} <table> <tr class="table_header"> <th colspan="8" class="right">last_promotion_date</th> <td><input type="text" name="last_promotion_date" onfocus="displayDatePicker(this.id);" class="date_picker" value="{{ form.last_promotion_date.value|date:"Y/m/d"}}"</td> </tr> </form> And here's the problem if the form is not valid, and if I keep the date:"Y/m/d" filter, the form values which have that filter do not show up in the rendered response. However, if I remove the date:"Y/m/d" filter from the template variables, the form is rendered including the invalid input. It's quite puzzling. What am I missing here? Why the invalid form's values do not appear in the presence of date:"Y/m/d" filter? -
Django 'model' object is not iterable
This question might be asked somewhere else but I wasn't able to find the answer to it. I have a table which shows me the employees registered. I want to generate a simple HTML page according to their db which include their name, id, designation etc. To do so I pass an id to the view so it can get the respective user's details and show me. Everything works fine until the error occurs object is not iterable . Here is my code report.html {% if emp_item %} {% for some in emp_item %} <title> {{ some.employee_name }} Report</title> <h3>{{ some.employee_name }}</h3> <table style="width:30%" border="4"> <td>{{some.id}}</td> <td>{{some.Annual_leave}} </td> <td>{{some.Sick_leave}} </td> <td>{{some.allowed}} </td> </table> {% endfor %} <h2>No User</h2> {% else %} {% endif %} view.py @staff_member_required # for admin login required def report(request, id): emp_item = Employee.objects.get(id=id) context = {'emp_item': emp_item} return render(request, 'projectfiles/report.html', context) urls.py url(r'^(?i)Rejectleaves/$', views.rejected_leave_show, name='Reject_show'), # user leaves url(r'^(?i)report/(?P<id>\d+)$', views.report, name='Report'), # user Report models.py class Employee(models.Model): allowed = models.BooleanField(default=True) employee_name = models.OneToOneField(User, on_delete = models.CASCADE) employee_designation = models.CharField(max_length = 5) employee_department = models.CharField(max_length = 5) Annual_leave = models.PositiveSmallIntegerField(default=5) Sick_leave = models.PositiveSmallIntegerField(default=5) I want the to see each individual user's data according to the process they … -
How to force the order of model migrations in apps from the different modules?
Here I have quite a few installed django apps, however I need that the wagtail.* would be migrated before any other app. INSTALLED_APPS = [ 'some_apps', ..., 'wagtail.contrib.forms', 'wagtail.contrib.redirects', 'wagtail.embeds', 'wagtail.sites', 'wagtail.users', 'wagtail.snippets', 'wagtail.documents', 'wagtail.images', 'wagtail.search', 'wagtail.admin', 'wagtail.core', 'wagtail.contrib.search_promotions', ..., 'more_apps', ] I tried python3 ./manage.py makemigrations "wagtail.core", but that throws an error: 'wagtail.core' is not a valid app label. Did you mean 'core'? Is there a way to do this? -
ERR_CONNECTION_REFUSED with Django and Vue.js bundle files
I've built a simple SPA CRUD web app with Django, Vue and Docker(-compose). Since I've finished developing the app, I'm now preparing for the production environment, that is, using bundle.js and bundle.css files. When I try to load the main page, http://localhost:8000, no CSS or JS are being loaded because I'm getting this error in the browser's console: GET http://0.0.0.0:8080/bundle.css net::ERR_CONNECTION_REFUSED GET http://0.0.0.0:8080/bundle.js net::ERR_CONNECTION_REFUSED I really don't know why it is giving that error or how to fix it. This is my vue.config.js file: const webpack = require("webpack"); const BundleTracker = require("webpack-bundle-tracker"); module.exports = { publicPath: "http://0.0.0.0:8080/", outputDir: "./dist/", filenameHashing: false, configureWebpack: { plugins: [ new webpack.optimize.LimitChunkCountPlugin({ maxChunks: 1 }) ] }, chainWebpack: config => { config .plugin("BundleTracker") .use(BundleTracker, [{ filename: "./webpack-stats.json" }]); config.output.filename("bundle.js"); config.optimization.splitChunks(false); config.optimization.delete("splitChunks"); config.resolve.alias.set("__STATIC__", "static"); config.devServer .hotOnly(true) .watchOptions({ poll: 1000 }) .https(false) .disableHostCheck(true) .headers({ "Access-Control-Allow-Origin": ["*"] }); }, // uncomment before executing 'npm run build' css: { extract: { filename: "bundle.css", chunkFilename: "bundle.css" } } }; This is part of my settings.py file: STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, "assets"), os.path.join(BASE_DIR, "frontend/dist"), ] # STATIC_ROOT = "" # The absolute path to the dir for collectstatic WEBPACK_LOADER = { 'DEFAULT': { 'BUNDLE_DIR_NAME': 'dist/', 'STATS_FILE': os.path.join(BASE_DIR, 'frontend', … -
django.db.utils.IntegrityError:
django.db.utils.IntegrityError: The row in table 'main_tutorial' with primary key '1' has an invalid foreign key: main_tutorial.tutorial_series_id contains a value 'tutorial_series_id' that does not have a corresponding value in main_tutorialseries.id. The above error shows up and cant migrate from django.db import models from datetime import datetime #Create your models here. class TutorialCategory(models.Model): tutorial_category = models.CharField(max_length=200) category_summary = models.CharField(max_length=200) category_slug = models.CharField(max_length=200, default=1) class Meta: #Gives the proper plural name for admin verbose_name_plural = "Categories" def __str__(self): return self.tutorial_category class TutorialSeries(models.Model): tutorial_series = models.CharField(max_length=200) tutorial_category = models.ForeignKey(TutorialCategory, default=1, verbose_name="Category", on_delete=models.SET_DEFAULT) series_summary = models.CharField(max_length=200) class Meta: #Otherwise we get "Tutorial Serie*ss* in admin" verbose_name_plural = "Series" def __str__(self): return self.tutorial_series class Tutorial(models.Model): tutorial_title = models.CharField(max_length=200) tutorial_content = models.TextField() tutorial_published = models.DateTimeField("date published", default = datetime.now()) tutorial_series = models.ForeignKey(TutorialSeries, default=1, verbose_name="Series", on_delete=models.SET_DEFAULT) tutorial_slug = models.CharField(max_length=200,default=1) def __str__(self): return self.tutorial_title -
Ajax form submission in Django
I am using devexpress for my project and I am new to coding. I have a datagrid with checkboxes and submit button. When I select some checkboxes and hit the submit button, I want to render a new table. I am getting the values of selected checkboxes by using "getselectdRowKeys()" with ajax. But nothing works. 1. If I pass an alert in the success it is showing the selected checkbox values. 2. If I use preventDefault(), I am getting the selected values in my django views(filter_list), but as per the script when something is posted, the "IF" statement should be executed in views.py which inturn renders the "else" part of the HTML. This is not happening. 3. Is there any other alternative method to achieve this? Please share your thoughts. Thanks HTML file: {% extends "base.html" %} {% block body %} {% if Vertical_header %} <script> $(document).ready(function(){ $("#gridContainer").dxDataGrid({ dataSource: {{Vertical_value|safe}}, showBorders: true, keyExpr: "RGN", showBorders: true, selection: { mode: "multiple" }, filterRow: { visible: true }, columns: {{Vertical_header|safe}}, showBorders: true }); }); </script> <div class="demo-container"> <form id='my_form' method="post" action="{% url 'mytablesm' %}"> {% csrf_token %} <div id="gridContainer"></div> <button type="submit" class="btn btn-primary btn-lg"><i class="fa fa-angle-double-down"></i></button> </form> </div> <script type="text/javascript"> var csrftoken … -
Create dynamic collections in mongoengine in django
I want to create collections dynamically using a unique string as a collection name. And then later access documents from those dynamically created collections. Is there a way I can achieve that? -
Get value from an input
How i get the value Flu with input name gejala_id0 in django from my input like this : <form method="POST" action="/diagnosis/response/" enctype="multipart/form-data" class="AVAST_PAM_nonloginform"> <input type="hidden" name="csrfmiddlewaretoken" value="B09UeUu83ADaQQkFe2GpIV5TyO5ruEZNA1zwJJ7zgMxCRR7I0Ing4Y7wQRR22NQj"> <ul id="id_gejala_id0"> <li> <label for="id_gejala_id0_0"> <input type="checkbox" name="gejala_id0" value="Flu" id="id_gejala_id0_0"> Flu </label> </li> </ul>