Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
Display Link Within Django ModelForm Based On Dropdown Value Selected
I am using class-based generic views and a forms.ModelForm as the form_class attribute. How would you make a link appear inside the ModelForm dependent on a form's dropdown value? I uploaded this minimal, reproducible example to GitHub HERE. git clone https://github.com/jaradc/SO939393.git What I am trying to achieve: when an item from a dropdown is selected, show link to a file below the dropdown instantly after selection. Visually: Form loaded on the request User selects an item from the "Model one" dropdown Some internal process: Gets the ModelOne sample_input_file location Injects that location as a link into the form below the "Model one" field QUICK VIEW (this IS the entire project) If this is too overwhelming, you can ignore it! I'm providing it for full context in-case someone wants to see every detail. Project name: SO939393 App name: myapp SO939393/urls.py from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('', include('myapp.urls')) ] SO939393/settings.py INSTALLED_APPS = [ 'django.contrib.admin', ... 'myapp.apps.MyappConfig', ] myapp/models.py from django.db import models class ModelOne(models.Model): name = models.CharField(max_length=100) large_pickle_file = models.FileField() sample_input_file = models.FileField() def __str__(self): return self.name class ModelTwo(models.Model): name = models.CharField(max_length=100) model_one = models.ForeignKey(ModelOne, on_delete=models.CASCADE) upload_file = models.FileField() def __str__(self): return self.name … -
Django- Can I Display Data in My Apps Detailview from a Model Connected to My App
I have 3 apps in my Django (1.11) project: My journal app has a Journal model with a ForeignKey field connected to my rate app. My product app is also connected to the rate app by a ForeignKey extending from the Product model. Here is the code for the three models: # journal app class Journal(models.Model): name = models.CharField(_('Name'), max_length=255) ... def __str__(self): return self.name # product app class Product(models.Model): name = models.CharField(_('Name'), max_length=255) ... def __str__(self): return self.name # rate app from journal.models import Journal from product.models import Product class Frequency(models.Model): frequency = models.CharField(max_length=20) def __str__(self): return self.frequency class Rate(models.Model): price = models.DecimalField(max_digits=10, decimal_places=2) frequency = models.ForeignKey(Frequency) product = models.ForeignKey(Product) journal = models.ForeignKey(Journal) def __str__(self): return str(self.price) I can define a price in the Rate model based on the Product.name, Journal.name, and the Frequency.frequency. Since the rate app allows me to set the price for each product based on the frequency and journal, I want to display that information back in my journal app within my template being rendered by this view: class JournalDetailView(DetailView): context_object_name = 'journal' model = Journal queryset = Journal.objects.all() template_name = 'journal_detail.html' This way all journal-specific information in journal_detail.html MY QUESTION: Is accessing the rate … -
How do I make Stripe email a customer when they subscribe?
I'm using the Stripe's Python library to process subscriptions. Here's a snippet of my backend code. stripeCustomer= stripe.Customer.create( email=userInputtedEmail, source=stripeTokenSendFromFrontEnd, ) The Stripe docs mention the ability to email customers when they subscribe. But when I set up a form with a $0.01/day subscribtion to test this out, I got no emailed receipt. I'm not in Stripe's test mode, I'm in its live mode. There are no relevant errors in my Stripe Dashboard's Developers section. How do I set Stripe up to email customers when they subscribe? -
Serializing Django model
I want to serialize my Sounds model for use in my game.js file. This is what I have. views.py def index(request): context = {'sounds': serializers.serialize('json', Sounds.objects.all()) } return render(request, 'index.html', context) index.html <button type="submit" onclick="main()">Let's Start!</button> game.js function main(){ var data = {{ context|safe }}; // print all objects here } It's not working - not sure what the issue is. Basically, when I click the button in index.html, it should go to the main function (this part works), and then set a variable data with the objects in the model so that I can use it. Also, is it possible to filter objects in data so that I have a list with only the objects with id = 1? I want to do this in game.js (not in views.py or elsewhere). -
how to resolve TypeError: 'Manager' object is not callable in django python
'//here's my code from django.db import models //trying to run this command(already imported Album class succesfully)-- //newAlbum=Album.objects(name="1",Artist=newArtist).save() //TypeError: 'Manager' object is not callable' -
Django catalog with product model
I need to create catalog model, where i can pick category (for example Phones) and choose any product in this category. Products must have parameters (for phone its processor, display, color etc.). Can someone help me? Sorry for my english :P -
Django SearchVector using icontains
I am trying to search for a list of values in multiple columns in postgres (via django). I was able to use SearchQuery and SearchVector and this works great if one of the search values matches a full word. I was hoping I could search using icontains instead of matching full text. Is this possible and if so could someone point me in the right direction. Here is an example of my approach below. Example Data: Superhero.objects.create(superhero='Batman', publisher='DC Comics', alter_ego="Bruce Wayne") Superhero.objects.create(superhero='Hulk', publisher='Marvel Comics', alter_ego="Bruce Banner") Django filter: from django.contrib.postgres.search import SearchQuery, SearchVector query = SearchQuery('man') & SearchQuery('Bruce') vector = SearchVector('superhero', 'alter_ego', 'publisher') self.queryset = self.queryset.annotate(search=vector).filter(search=query) This would return the Hulk record but I am hoping I can somehow use like 'icontains' so that when searching for 'man' the Batman record would also be returned. Any help is appreciated! -
Can't connect to mysql server on a LAN
I'm working on a django project and I would like to make mysql connection between my machine and another one on remote DATABASES = { 'default':{ 'ENGINE': 'django.db.backends.mysql', 'NAME': 'mydb', 'OPTIONS' : { "init_command": "SET foreign_key_checks = 0;" }, 'USER': 'root', 'PASSWORD': '', 'HOST': '192.168.1.33',%the machine which contains mysql server 'PORT': '3306' } } django.db.utils.OperationalError: (2003, 'Can\'t connect to MySQL server on \'192.168.1.33\' (111 "Connection refused")') -
How to get value from a function object python
I am using the following code: from uuid import getnode as get_mac mac = get_mac() print((mac)) in order to find out the mac address. It is running fine on local idle of python. but when i store the same value as string in django database. It is stored like: <function getnode at 0x05B641E0> I want to store its value. can anyone tell how to get the value of the mac variable. thanx in advance -
Channels: is there a sample without redis as backend?
Here you can read "Setting up a channel backend" and they give this example: CHANNEL_LAYERS = { "default": { "BACKEND": "channels_redis.core.RedisChannelLayer", "CONFIG": { "hosts": [("redis-server-name", 6379)], }, }, } This imply that you install the Redis backend. I don't want to install the Redis backend. I'd like to use the sqlite in my sqlite database. Is this possible? Is there a sample somewhere, or can someone give me an example? -
Django: run .php file via url
on the server with php we can put myfile.php in the myfolder and then go to https://mysite.ru/myfolder/myfile.php, it is possible to do the same on Django website. I need to set up this script: https://github.com/Surzhikov/Telegram-Site-Helper-2.0 -
Maintaining document Header hierarchy python-docx
I am developing algorithms for extracting sections of a Docx file while maintaining document structure I managed to get headings but How do I go about getting the data between headers and maintain header hierarchy: This is what I have done so far... from docx import Document document=Document('headerEX.docx') paragraphs=document.paragraphs def iter_headings(paragraphs): for paragraph in paragraphs: if paragraph.style.name.startswith('Heading'): yield paragraph for heading in iter_headings(document.paragraphs): print (heading.text) -
Django 2 creating models in response to valid form
I am fairly new to Django and am creating a form page for a user group. I have a form model and a "task" model which would tie a starting and ending time and user to the form. The Unit class that is referenced is already made and only provides the serial number. The way this should flow is that the user selects a serial number from a dropdown and enters values for the rest. Then upon submission, a Task object is made which pulls the serial number from the form, the task type from direct value, the user from the current logged in user, and the start time is automatic. I had to make the "task_id" attribute of the AsmbEntry null and blank due to the fact that a task starts as the form is submitted which isn't a big deal. My question is would I create a task and link it to the form within the "form_valid()" def of the view? If so then is this the right approach? Any input is welcome! models.py class Task(models.Model): id = models.AutoField(primary_key=True) unit_sn = models.ForeignKey(Unit, to_field='sn', related_name='task_unit_sn', on_delete=models.CASCADE) task_type = models.CharField(max_length=1, choices=STATES, default='0') starter = models.ForeignKey(User, related_name='task_starter', null=True, on_delete=models.CASCADE) start_time = … -
Django Captcha Decoratr
I've used a reCaptcha system created by http://simpleisbetterthancomplex.com/ In class-based views, it works perfectly fine, but whenever it comes to built-in libraries like: from django.contrib.auth import views as auth_views and functionalities: auth_views.password_reset it literally does not work as it should. The process of confirming the code of captcha is not executed at all. I'm having a following usage of it: url(r'^password/reset/$', check_recaptcha(auth_views.password_reset), name='password_reset'), decorators.py: def check_recaptcha(view_func): @wraps(view_func) def _wrapped_view(request, *args, **kwargs): request.recaptcha_is_valid = None if request.method == 'POST': recaptcha_response = request.POST.get('g-recaptcha-response') url = 'https://www.google.com/recaptcha/api/siteverify' values = { 'secret': settings.GOOGLE_RECAPTCHA_SECRET_KEY, 'response': recaptcha_response } data = urllib.urlencode(values) req = urllib2.Request(url, data) response = urllib2.urlopen(req) result = json.load(response) if result['success']: request.recaptcha_is_valid = True else: request.recaptcha_is_valid = False messages.error(request, 'Invalid reCAPTCHA. Please try again.') print(str('Invalid reCAPTCHA. Please try again.')) return view_func(request, *args, **kwargs) return _wrapped_view password_reset_template.html {% block content %} <div class="row justify-content-center"> <div class="col-lg-4 col-md-4 col-sm-4"> </div> <div class="col-lg-4 col-md-4 col-sm-4"> <div class="row main"> <div class="main-login main-center"> <center> <br> <h3 class="card-title"><b>E-mail:</b></h3><br> <form method="post" action="."> {% csrf_token %} {% for field in form %} <div class="form-group" style="padding: 0px 40px;"> {% if field.errors %} <div class="alert alert-danger"> {{ field.errors }} </div> {% endif %} <div class="cols-sm-10"> <div class="input-group"> <span class="input-group-addon"><i class="fa fa-envelope" aria-hidden="true"></i></span> {{ field … -
Django Heroku Server Error page 500 only when Debug = False , When Debug on True everything works fine. Why?
My Djangoproject call: myDebug and my Django app call: Deb it is on Heroku: meindebug.herokuapp.com settings.py import os import django_heroku BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'r^4v$5)wj)h5d*17ri&6g&+hk56cl1jy94i3=b##u3g_zur83m' DEBUG = False ALLOWED_HOSTS = ['meindebug.herokuapp.com'] INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'Deb', ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', ] ROOT_URLCONF = 'myDebug.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'myDebug.wsgi.application' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.0/howto/static-files/ STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') STATIC_URL = '/static/' STATICFILES_DIRS = ( os.path.join(BASE_DIR, 'static'), ) STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' django_heroku.settings(locals()) !!! please notice i tried it with ALLOWED_HOSTS = ['*'] but nothing changed !!! wsgi.py import os from django.core.wsgi import get_wsgi_application from whitenoise import WhiteNoise os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myDebug.settings") application = get_wsgi_application() application = WhiteNoise(application, root='/static/Deb/Images/') application.add_files('/static/Deb/Images/', prefix='more-files/') Procfile web: gunicorn myDebug.wsgi Pipfile [[source]] url = "https://pypi.python.org/simple" … -
Populate text field in django model form based on list box selection
I have a django modelform which allows users to create product components.the product id from the table 'product' will be the foreign key in product_component table.The 'product' table is having fields like default_qty and default_price. When the user creates a product component through modelform they will select the product from the listbox first.The list box will be populated automatically using the foreign key relation.Then i need to populate the default_qty value for the selected product in qty field of current form. I have seen few solutions using javascript. But not clear about how to implement.Any solutions with or without using js? -
Categories As clickable buttons Django
I have a view to render a list of all unique categories. I want them to be links. that open a new view displaying all items belonging to that category. i have no idea how to create those links on the urlpatterns. I also have some questions regarding what is the best course of action on this. the first thing I have tryed is having my model already include the category field and filter unique fields on my ListView class. second thing i tryed is to create a new model to contain all categories. my models.py class Items(models.Model): nombre = models.CharField(max_length=250) descripcion = models.CharField(max_length=250) codigo_proveedor = models.CharField(max_length=250) # categoria = models.CharField(max_length=250) categoria = models.ForeignKey('Categorias', on_delete=models.CASCADE) c_minima = models.IntegerField() c_actual = models.IntegerField() proveedor = models.ForeignKey('Proveedores', on_delete=models.CASCADE) active = models.BooleanField() def __str__(self): return self.nombre + ' ----- ' + str(self.categoria) + ' ----- ' + str(self.c_actual) class Categorias(models.Model): categoria = models.CharField(max_length=250, unique=True) # slug = models.SlugField(max_length=250, unique=True) active = models.BooleanField() # # def get_absolute_or_url(self): # return '',(self.slug, ) def __str__(self): return self.categoria class Proveedores(models.Model): nombre = models.CharField(max_length=250) telefono = models.CharField(max_length=250) direccion1 = models.CharField(max_length=250) direccion2 = models.CharField(max_length=250, null=True) active = models.BooleanField() def __str__(self): return self.nombre my views.py # CREA LOS BOTONES DE CLASIFICACIONES … -
Django Rest framework always return error 400
I'm trying to use a Post method that returns a token for authentication when someone post the correct username and password, but everytime I get the 400 error (I'm tryin to use RetroFit for Android) Here are my urls (I'm usin tokken authentication): from rest_framework.authtoken import views as tmp from decaught import views router = routers.DefaultRouter() router.register(r'devices', views.DeviceViewSet) router.register(r'users', views.UserViewSet) urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^', include(router.urls)), url(r'^api-auth/', tmp.obtain_auth_token), ] And here's how I use retrofit: The POST method: @POST("/api-auth/") Call<Tokken> get_tokken(@Query("username") String username, @Query("password") String password); The login method: private void signIn() { boolean isValid = validate(); if (isValid) { mService.get_tokken(user.getText().toString(), password.getText().toString()).enqueue(new Callback<Tokken>() { @Override public void onResponse(Call<Tokken> call, Response<Tokken> response) { if (response.isSuccessful()) { System.out.println("Te lo imprimo"); System.out.println(response.body().toString()); Toast.makeText(LoginActivity.this, "tokken recibido", Toast.LENGTH_SHORT).show(); } else { int statusCode = response.code(); // handle request errors depending on status code } } @Override public void onFailure(Call<Tokken> call, Throwable t) { Toast.makeText(LoginActivity.this, "Error al recibir tokken", Toast.LENGTH_SHORT).show(); t.printStackTrace(); Log.d("MainActivity", "error loading from API"); } }); /*startActivity(new Intent(this, RolSelection.class));*/ } } But every time I try to log in in the server I get this message: [16/Apr/2018 20:56:06] "POST /api-auth/?username=admin&password=admin1234HTTP/1.1" 400 79 Any idea why it's happening? -
Change manager for django model's '.objects' with a decorator
I am trying to write a decorator for changing django models' managers like the following: def custom_manager(*args): class CustomManager(models.Manager): pass def wrapper(cls): cls.add_to_class('objects', CustomManager()) return cls return wrapper @custom_manager() class SomeModel(models.Model): pass the problem seems to be that objects attribute is already taken by the default manager, and it must be removed from the model first. Simply setting cls.objects = CustomManager() inside the decorator does not work too. Everything works fine if I use some unused attribute name (i.e. not objects), but I want to replace exactly the objects attribute to make all apps (e.g. DjangoAdmin etc) use this custom manager. So is there a way to correctly remove the default manager from the model or fix it some other way? -
Cannot Save Data Using Python Social Auth Django
I'm trying to get the gender from a facebook login and save it into my database via Python Social Auth Django, I haven't been able to figure out why it keeps storing it as an empty string. models.py class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE, related_name="profile") gender = models.CharField(max_length=20) @receiver(post_save, sender=User) def create_user_profile(sender, instance, created, **kwargs): if created: Profile.objects.create(user=instance) @receiver(post_save, sender=User) def save_user_profile(sender, instance, **kwargs): instance.profile.save() views.py def save_profile(backend, user, response, *args, **kwargs): if backend.name == 'facebook': sign_up = User.objects.get(username=user) sign_up.profile.gender = response.get('gender') sign_up.save() settings.py SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = { 'fields': 'id, name, email, picture,gender'} SOCIAL_AUTH_PIPELINE = ( 'social_core.pipeline.social_auth.social_details', 'social_core.pipeline.social_auth.social_uid', 'social_core.pipeline.social_auth.auth_allowed', 'social_core.pipeline.social_auth.social_user', 'social_core.pipeline.user.get_username', 'social_core.pipeline.user.create_user', 'social_core.pipeline.social_auth.associate_user', 'social_core.pipeline.social_auth.load_extra_data', 'social_core.pipeline.user.user_details', 'accounts.views.save_profile', ) -
In a Django view requiring two-factor authentication as well as login and permission, what should be the relative order of the mixin classes?
I'm reviewing a class-based view which uses the OTPRequiredMixin as well as the LoginRequiredMixin and the PermissionRequiredMixin. I understand that the ordering of the mixins in the inheritance chain is important; for example, the docs state that the LoginRequiredMixin should be in the leftmost position. My guess is that the mixins should be ordered as follows: from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin from two_factor.views.mixins import OTPRequiredMixin class AccessMixin(LoginRequiredMixin, PermissionRequiredMixin, OTPRequiredMixin): pass I wasn't able to find any confirmation of this from the Django Two-Factor Authentication docs, however. Is this the correct way to order the mixins? -
combine multiple list of dictionaries and replace the keys [on hold]
I have this: people_data=[{'name': 'Tom', 'strvalue': '30', 'item_to_check':'age'}, {'name': 'John', 'strvalue': '1234567890', 'item_to_check': 'phone'}, {u'name': 'Tom', 'strvalue': '5678123490', 'item_to_check': 'phone'}, {u'name': 'John', 'strvalue': 'a_address', 'item_to_check':'address'}...] I have items_to_check like this: items_to_check=[{'item_to_check', 'phone'}, {'item_to_check', 'age'}, {'item_to_check', 'address'}] And my names_list: names_list=[{'name':'John'}, {'name':'Tom'}, {'name':'Jane'}....} My goal is to construct my_data so that for each 'name' in names_list, and for all item_to_check from items_to_check, I pull all data from people_data for this person and list the item_to_check as key of 'strvalue' of this item_to_check for that person. If item_to_check is missing(for example 'age' is miss for 'John', will leave it as blank. So my_data looks like this: my_data = [{'name': 'John', 'phone': '1234567890', 'address':'a_address', 'age'=''}, {'name': 'Tom', 'phone': '5678123490', 'address':'', 'age':'30'}...] How would I achieve this? -
Wagtail app wagalytics show an 500 Error on console /admin/analytics/token/ 500
Am integrating Wagtail and Google Analytics with the app wagalytics gives me /admin/analytics/token/ 500 () and the settings i used as indicated on the ReadMe GA_KEY_FILEPATH = 'project-6408cf73f290.json' GA_KEY_CONTENT = 'client_secret.json' GA_VIEW_ID = 'ga:173531812' Kindly where am i going wrong ? This is the only error shown -
Django rest framework, result is not returned in retrieveapiview
I am new to django rest framework. I have 2 models, Store and Rate. For this API, you enter store number to find the state. and find the rate in that state. I am able to get the rate and print it in the console. but for some reasons I kept getting no found. class RateDetailAPIView(RetrieveAPIView): def get_queryset(self): storeNumber = str(self.kwargs['store_number']) store = Store.objects.get(store_number = storeNumber) rate = Rate.objects.get(state = store.state) print(rate.proposed_per_store_rate) return rate #queryset = self.get_queryset() lookup_field = 'store_number' serializer_class = RateSerializer this is what i get in the console. 1700 is the rate. then I get no found. 1700 Not Found: /api/rates/1910003/ [16/Apr/2018 17:56:07] "GET /api/rates/1910003/ HTTP/1.1" 404 5249 Models: from django.db import models class Store(models.Model): store_number = models.CharField(max_length=50, blank=False, unique=True) address = models.CharField(max_length=255, blank=False, unique=False) address2 = models.CharField(max_length=255, blank=True, unique=False) city = models.CharField(max_length=50, blank=False, unique=False) state = models.CharField(max_length=10, blank=False, unique=False) zip_code = models.CharField(max_length=50, blank=True, unique=False) phone_number = models.CharField(max_length=50, blank=True, unique=False) store_hours = models.CharField(max_length=255, blank=True, unique=False) latitude = models.CharField(max_length=50, blank=True, unique=False) longitude = models.CharField(max_length=50, blank=True, unique=False) geo_accuracy = models.CharField(max_length=255, blank=True, unique=False) country = models.CharField(max_length=50, blank=True, unique=False) country_code = models.CharField(max_length=10, blank=True, unique=False) county = models.CharField(max_length=50, blank=True, unique=False) def __str__(self): return"{}".format(self.store_number) class Rate(models.Model): number_of_stores = models.IntegerField() state = models.CharField(max_length=5, blank=False, … -
Read cell Contents Dynamic JS/Jquery table
I am using JS/Jquery to dynamically add rows to by Table. Here is a template that I found online: <table id="tblCustomers" cellpadding="0" cellspacing="0" border="1"> <thead> <tr> <th>Name</th> <th>Country</th> <th></th> </tr> </thead> <tbody> </tbody> <tfoot> <tr> <td><input type="text" id="txtName" /></td> <td><input type="text" id="txtCountry" /></td> <td><input type="button" onclick="Add()" value="Add" /></td> </tr> </tfoot> </table> From what I gather, in order to ensure that the actual cell content values get passed on Post I need to assign them to hidden fields. How do I read the actual contents of the cells. I tried: $("#submitForm").click(function(){ alert("submit Clicked"); $('#tblCustomers tfoot td').each(function() { var cellText = $(this).html(); }); }); however, All I got was this as return value: Can you let me know what I need to do to get actual value of cell. I need to make a dynamic table/item list and i would like to send the list of items back to server for processing. Sort of like a purchase list etc.. BTW: the backend is Django 2.0 Thanks for your help. Tanmay