Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
How do implement HTTPS on super simple dango site
I built a simple page with django form this tutorial https://wsvincent.com/django-image-uploads/. How do I enable https on it so that the uploaded posts can not be seen in the clear on the network? I currently not running apache, tomcat or nginx but can if that is the only way. I read the SSL/HTTPS of the django documentation https://docs.djangoproject.com/en/2.1/topics/security/#ssl-https on django security but is that something I configure within the django framework or are those settings for a webserver like apache. Thank you. -
How to fetch data from Django api?
I am new to Django and React platform. trying to fetch the data from Django. Data in postman looked like below: [ { "length": 25, "width": 25, "height": 10, "weight": 3, "base_price": "15.00", "per_kg_price": "5.00", "origin_country": "FI", "destination_country": "CN" }, { "length": 85, "width": 30, "height": 10, "weight": 6, "base_price": "30.00", "per_kg_price": "5.00", "origin_country": "FI", "destination_country": "CN" }, { "length": 105, "width": 50, "height": 10, "weight": 10, "base_price": "50.00", "per_kg_price": "5.00", "origin_country": "FI", "destination_country": "CN" } ] I like to fetch these values inside my react component and values of toggle button should concatenate as lengthbreadthheight*weight. and values for each button should look like below: <ButtonToolbar > <ToggleButtonGroup type="radio" name="packageSize" > <ToggleButton className="orders_Size" name="Small" id="Small" value="25*25*10*1" disabled={this.state.disabled} onChange={this.setPackageSize}>Small</ToggleButton> <ToggleButton className="orders_Size" id="Medium" value="85*30*10*4" disabled={this.state.disabled} onChange={this.setPackageSize}>Medium</ToggleButton> <ToggleButton className="orders_Size" id="Large" value="105*50*10*8" disabled={this.state.disabled} onChange={this.setPackageSize} >Large</ToggleButton> </ToggleButtonGroup> </ButtonToolbar> -
Django value convert by function
What is best approach to do the following operation with django rest framework? Suppose that my server will received the following JSON data for same object: // Case 1: { "name":"apple", "category": "fruit" // fruit = 1 } // Case 1.1: { "name":"apple", "category": "1" // 1 for fruit } // Case 2: (IDEAL) { "name":"apple", "category": 1 // 1 for fruit } // Case 3: { "name":"apple" // fill with default 1 } My Solution now is write a special convert function for the those special field like category. However, I have some issues for my approach there exists lot of similar and this approach needs more hard-coding the key value conversion pair will be updated frequently this operation involves in CRUD -
How to add a profile page in Django 2.0 backend for staff users?
I surfed the web for something like this but I find only frontend solutions or obsolete guides. I wish to allow staff users to edit some default info such as first_name, last_name, email but also other extra info such bio, telephone, etc. I created a Profile class with a OneToOneField relation to User as suggested here but in this way only superuser can edit these informations. If I give can_change_user permission to the staff group each "staff" user can edit any profile. -
Django Query result comparison with if statement
Need to check browser changeable values with using browser inspect and enter random id into url which is in button so I'm not really pro about django and stuff.I make a validation of data which is going to updated or deleted that can checked by tenantid for instance Im going press update on a single line of record and mechanics going to check if the record tenantid is equal to my tenant id or not. problem is about I cant compare query result to int value. if any better approach about this I'ill be glad to hear, thank you have a good days. @login_required() def customer_update(request, pk): customer = get_object_or_404(Customer, pk=pk) valueOwnerTenantid = Customer.objects.values_list('tenantid', flat=True).filter(id=pk) print(valueOwnerTenantid) print(request.user.tenantid) print(valueOwnerTenantid.query) if number(valueOwnerTenantid) == number(request.user.tenantid): if request.method == 'POST': print('Equal and POST') form = CustomerForm(request.POST, instance=customer) else: print('Equal and Get') form = CustomerForm(instance=customer) return save_customer_form(request, form, 'customer_update_partial.html') else: -
how i can change label password in django froms?
i need change label ( password = forms.PasswordInput() ) in created form in django . i tried this : password = forms.PasswordInput(label='ps') but it dont work and have error : TypeError: init() got an unexpected keyword argument 'label' -
How to update correctly the status of an order to 'completed' using woocommerce api in django
I am facing with the problem of changing the status of an order from 'pending' to 'completed'. The initial status is 'pending'. The process has to be done from a user using a form (model form of django) I think that the logical error raises when i try to pass the fetched data from my app(from my database) back to woocommerce api. Here is my code: def form_valid(self, form, **kwargs): order = form.save(commit=False) current_order = Woo_Orders.objects.get(id=self.kwargs['pk']) current_order.status=order.status eshop=current_order.eshop current_order.save() if current_order.status == "completed" : wcapi = API( url=eshop.url, consumer_key=eshop.consumer_key, consumer_secret=eshop.consumer_secret, wp_api=True, version="wc/v2", query_string_auth=True, verify_ssl = True, timeout=10 ) data = { "status": "completed" } wcapi.put("orders/current_order.oid", data) print(wcapi.put("orders/current_order.oid", data).json()) return super(Woo_OrderUpdateView, self).form_valid(form) My printed json is : {u'message': u'\u0394\u03b5\u03bd \u03b2\u03c1\u03ad\u03b8\u03b7\u03ba\u03b5 \u03b4\u03b9\u03b1\u03b4\u03c1\u03bf\u03bc\u03ae \u03c0\u03bf\u03c5 \u03bd\u03b1 \u03c4\u03b1\u03b9\u03c1\u03b9\u03ac\u03b6\u03b5\u03b9 \u03bc\u03b5\xa0 \u03c4\u03b7 \u03b4\u03b9\u03b5\u03cd\u03b8\u03c5\u03bd\u03c3\u03b7 URL \u03ba\u03b1\u03b9 \u03c4\u03b7 \u03bc\u03ad\u03b8\u03bf\u03b4\u03bf \u03c4\u03bf\u03c5 \u03b1\u03b9\u03c4\u03ae\u03bc\u03b1\u03c4\u03bf\u03c2', u'code': u'rest_no_route', u'data': {u'status': 404}} Why the status is 404? -
Scheduling task from Django admin Panel
I want to schedule a task in Django which would run at a paticular time every day.I am thinking of using celery to schedule the tasks so I wanted to know is there anyway through celery-beat I could execute the task through admin panel that is make it active or inactive and give the time at which I want to execute task through my admin site.Instead of writing this in my code crontab(day_of_week="0,6", hour="0,12", minute=15) I want to pass it through my admin panel so that in future if I want to execute my task at some other time I could change it directly through admin panel instead of changing my code. -
How to change the class of div according to the screen width
I am displaying the products on my html page, Some products have large detail and some have minor details. When I show those products the div of products with large detail have greater height than the products with minor details to fix this issue i assign height to the div but it didn't worked because when i open my page in mobile view the detail of the product overflow from its div then i tried to change the class of div using media query if width is < 991px change col-md-6 to col-md-12 i made this change using jquery but it only affect the first div. What is the Standard solution of this problem?. $(window).resize(function() { if ($(window).width() < 991) { alert("window"); $( "product612" ).removeClass( "col-md-6" ).addClass( "col-md-12" ); $("product612").toggleClass('col-md-6 col-md-12'); } }); .product{ background-color: rgba(92, 90, 90, 0.096); word-wrap:break-word; position: relative; text-align: center; padding: 40px 20px; margin: 15px 0px; height: 433.4px !important; } .product:after { content: ""; background-color: rgba(2, 2, 2, 0.781); position: absolute; left: 0; top: 0; bottom: 0; width: 0%; z-index: -1; -webkit-transition: 0.2s width; transition: 0.2s width; } .product:hover p{ color: white !important; } .product:hover:after { width: 100%; height: auto; } .product p{ color: rgb(80, 80, … -
How to call custom method in django's admin template
I've got a trouble: I can easily update my html template sending the "object_list" object and iterating it with {%for item in object_list%} #... some operation {% endfor %} However I don't know yet to do the same with my overriden admin-template in "template/admin/add_form.html": how to send and retrieve a method I added to my admin.py ModelAdmin custom class? here there's my url.py from django.urls import path from django.conf.urls import url from . import views as mysearch_views from django.contrib import admin from django.views.generic import ListView, DetailView from .models import MySearch # Admin custom admin.sites.AdminSite.site_header = ‘to be decided’ admin.sites.AdminSite.site_title = ‘to be decided’ admin.sites.AdminSite.index_title = ‘to be decided’ urlpatterns = [ url(r'^$', mysearch_views.my_search, name="my_search"), url(r'^(?P<id>\d+)/(?P<slug>[\w-]+)/$', DetailView.as_view(model=MySearch, template_name="queries.html"), name="queries"), url(r'^contacts', mysearch_views.contacts, name="contacts"), url(r'^result-table', mysearch_views.create_table, name="results"),] Thanks in advance -
How to print prn file through a web page to TSC thermal printer
In our case we have build an web based application using python and django and which is hosted in the cloud server. Now the end user will generate a barcode sticker in our application we have used django barcode package to generate the barcode. Now when we click on print the barcode is not aligned properly in the sticker though we resized we are unable to achieve it, So right now we are using bartender software to print the sticker through prn file. Can anyone help me to solve this. -
How to make Django and Neo4j containers cooperate?
I have 2 docker containers: my django project and neo4j. The package that I use is neomodel. As its documentations says to connect to neo4j is to use config or db. In my django settings.py there is a line of code db.set_connection("bolt://neo4j:password@0.0.0.0:7687"). After building and getting them up django can't connect to neo4j, but I can connect to it from host machine. My docker-compose.yml: version: "3" services: neo4j: container_name: neo4j image: neo4j env_file: - .env expose: - 7474 - 7473 - 7687 ports: - "7474:7474" - "7473:7473" - "7687:7687" volumes: - ./$PROJECT/neo4j/data:/data:z - ./$PROJECT/neo4j/logs:/logs:z restart: always backend: container_name: backend image: nrgx/backend # build: # context: . # dockerfile: ./docker/backend/Dockerfile env_file: - .env volumes: - ./backend:/backend:z command: bash -c "python manage.py makemigrations && python manage.py migrate && ./manage.py" ports: - "8080:8080" depends_on: - db - redis - neo4j links: - db - redis - neo4j restart: always settings.py from neomodel import db url = "bolt://neo4j:password@0.0.0.0:7687" db.set_connection(url) I expect django and neo4j cooperate and successfully create graphs with django. But now it's just backend container always reloads because it can't connect: backend | Traceback (most recent call last): backend | File "manage.py", line 24, in <module> backend | main() backend | File … -
How to add the image in the form.serialize()?
There is a form. I'm trying to add an image in the form.serialize, but it does not work. Here is the form itself. <form action="/knowledge_base/add/" class="edit_form new_event" id="id_article_form" enctype="multipart/form-data" onsubmit="submitArticleForm(event, this)" method="POST"> <input type="hidden" name="csrfmiddlewaretoken" value="QR8lN1G9v6qzlJFuYTnwDBO3FYMb1OWsDwMxS0vpwETdv4JKNbG0auYdCGVG9Ain"> <div class="content_create"> <div class="field inline textarea"> <input type="text" name="title" id="id_title" style="width: 400px;" required="" class="wide" maxlength="254"> </div> </div> </div> </div> <div class="footer_content"> <div class="footer_select"> <div class="field inline footer_inline select"> <div class="subhead">Категория статьи:</div> <select name="category" id="id_category" onchange="changeArticleCategory(event, this);" class="select2" required=""> <option value="" selected="">---------</option> <option value="2">Еда</option> <option value="1">Спорт</option> </select> </div> <div class="field inline select" id="id_subcategory_div"> <div class="subhead">Подкатегория статьи:</div> <select name="subcategory" class="select2" id="id_subcategory"> </select> </div> <div class="field inline footer_inline select"> <div class="subhead">Статус</div> <select name="status" class="select2" id="id_status"> <option value="published">Опубликовано</option> <option value="not published" selected="">Not published</option> </select> </div> </div> <div class="event_photo"> <img id="id_image_show" src="blob:http://127.0.0.1:8000/316edc4e-21b6-4fac-981f-8342619b11a3" data-rjs="2" style="display: inline;"> <div class="backgroundImage"> <span class="flaticon-image"></span> </div> <div class="blind_links"> <div class="wrapp"> <a href="javascript:void(0)" onclick="$('#id_image').click()"> <span class="flaticon-up-arrow-hand-drawn-outline image_upload" style="display: none;"></span> <span class="image_upload" style="display: none;">Загрузить</span> <span class="flaticon-two-circling-arrows image_edit" style="display: inline;"></span> <span class="image_edit" style="display: inline;">Редактировать</span> </a> </div> </div> <input type="file" name="image" style="display: none;" onchange="addArticleImage(event, this);" id="id_image"> </div> <div class="center"> <button type="submit" class="submit" id="id_submit">сохранить</button> </div> </div> </form> The image src is written to the <img id="id_image_show" src="" data-rjs="2">. The object File comes in the request.POST, but the image cannot be … -
Image is not showing when Debug=false
Uploded Image is not showing.when i change Debug=false in setting.py in my Django project. code {{certificate.File.url}} -
Django - linkedIn API - client error(410) - HTTPError at /complete/linkedin-oauth2/
I need to get some information from LinkedIn profile of a user to fill existing fields of my application form. So I am using LinkedIn API(I have created app in linkedin and stand with client_Key, client_Secret,r_liteprofile and r_emailaddress permissions). Now it is prompting me to sign-in with linkedIn and asking for "Allow" permission(All OK till this prompt) but In the next page I'm getting below error instead of showing json file with user information. """ HTTPError at /complete/linkedin-oauth2/ 410 Client Error: Gone for url: https://api.linkedin.com/v1/people/~:(first-name,id,last-name)?oauth2_access_token=AQVpVZCnhj2oLkzUvQytDU89kJUMm5yEIadV0BZMid3WVqPSVdOiJIePGIH7ZL7i3M5gppOlbUqpS68rDaaio56Y-nkC3Njpvf91v8WUPxQ8t-3uqJRzCC_MdrKUpntLalp24Eo2BMjpYIKeHGdxjFIlaMt9tszkIVHpPcZA2-dgbqOBrvt9-QE4P91bTXqBBkrtHEXg9F560OvltnQDgc0U1xwO-5yOT5LjlqAtvDJ_gMf3G8rZ9cdkayq4aP1CO-ljglGqlJb4uxorPRg7qPqqkNaAmQjXploM0KVQ6pK7nidP4zC2l7WW1aqg38GRDe8AM8jzaiIkg-SX3JfCJA28fT9H8A&format=json """ Below is my code, Did I miss anything....I'm newbie to Django Please help me to fix it?? I have tried to get exact access token format like{access token:XXXXX,expires in:XXX} with url https://www.linkedin.com/oauth/v2/accessToken?grant_type=authorization_code&client_id=[my_client_ID]&client_secret=[my_client_secret]&redirect_uri=http://192.168.3.189:8007/complete/linkedin-oauth2/&code=[code from error page url] but I got below response instead of accessToken. {"error":"invalid_request","error_description":"Unable to retrieve access token: appid/redirect uri/code verifier does not match authorization code. Or authorization code expired. Or external member binding exists"}. INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'crispy_forms', 'bootstrap4', 'social_django', ] 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', 'social_django.middleware.SocialAuthExceptionMiddleware', ] TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates')], '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', 'social_django.context_processors.backends', 'social_django.context_processors.login_redirect', ], }, … -
Django - How to get all related objects in relationship model of an user with single queryset
I want to get all object of the user with single queryset, But i have no idea about it... Please help me Example: I got a 2 relationship model to user model, I can get the objects with these code below User.objects.get(id=1).profile User.objects.get(id=1).groups But how can i get all objects of user with single queryset only... -
How to add new record in Django model with FK and Datafield
I tried creating model form to add new record to my models in django.I have 3 models and for this models I created forms ,views and template. (Notice that in my project I have a lot of code, but I put some of them here that explain my problem. ) This is my files: models.py class ResearchRecord(models.Model): TYPE_CHOICES = ( ('1','scientific_research'), ('2','conference'), ) user = models.ForeignKey(User, on_delete=models.PROTECT) institutes = models.ForeignKey(EducationalInstitutes, on_delete=models.PROTECT) title = models.TextField(max_length=250, blank=False) type = models.TextField(max_length=100, blank=False, choices=TYPE_CHOICES) year = models.DateField(max_length=100) upload_url = models.FileField(upload_to='research-resume-files/') def __str__(self): return self.title class EducationalInstitutes(models.Model): INSTITUTES_CHOICES = ( ('1','university'), ('2','education_center'), ('3','school'), ) name = models.TextField(max_length=100, blank=True) type = models.TextField(max_length=100, blank=False, choices=INSTITUTES_CHOICES) description = models.TextField(max_length=500, null=True, blank=True) educationl_institution_pic1 = models.ImageField(upload_to='educationl-institution-pics/',null=True) def __str__(self): return self.name view.py def view_research_resume(request): research_resume =ResearchRecord.objects.filter(user=request.user) research_resume_dict = {'research_resume':research_resume} return render(request,'education/job_research_education_records/research_resume/view_research_resume.html',research_resume_dict) def add_research_resume(request): if request.method=="POST": form = AddResearchForm(request.POST) if form.is_valid(): research_resume = form.save(commit=False) research_resume.user= request.user research_resume.save() return redirect('view_research_resume') else: form = AddJobForm() return render(request, 'education/job_research_education_records/research_resume/add_research_resume.html', {'form': form}) forms.py class AddResearchForm(ModelForm): class Meta: model = ResearchRecord fields = [ 'title', 'type', 'year', 'upload_url', ] add_research_resume.html <form method="post" > {% csrf_token %} {{form.as_p }} <button type="submit" class="btn btn-info">add</button> </form> urls.py urlpatterns = [ path('edu/resume/research/', views.view_research_resume, name='view_research_resume'), path('edu/resume/research/add', views.add_research_resume, name='add_research_resume'),] Really my probelm is: … -
Django: Annotate missing dates
I want to know how many orders I got per day in a specific period. My Order model looks like that: class Order(models.Model): ... bookingdate = models.DateTimeField(default=timezone.now) ... My current Django "query" looks like that: query = Order.objects.filter(bookingdata__gte=startdate, bookingdate__lte=enddate) query = query.annotate(created_date=TruncDate('bookingdate')).values('created_date').annotate( sum=Count('created_date')).values('created_date', 'sum') My current problem is that I only get dates listed where at least one order happend per day. But I want also to list the dates with 0 orders. For example I get right now a "list" like that: 12.12.2018 => 3 14.12.2018 => 1 17.12.2018 => 2 But I also want the dates in between. Example: 12.12.2018 => 3 13.12.2018 => 0 14.12.2018 => 1 15.12.2018 => 0 16.12.2018 => 0 17.12.2018 => 2 Any idea how I can do this? -
Accessing Grandparent data from Child view
I have Django models as follows : class Grandparent(model.Models): grandparent_name = models.CharField(max_length="100") grandparent_age = models.IntegerField(default=10) class Parent(model.Models): parent = ForeignKey(Grandparent,default=1) parent_name = models.CharField(max_length="100") class Child(model.Models): parent = ForeignKey(Parent,default=1) child_name = models.CharField(max_length="100") I want to access Grandparent information from Child model. How do I do it using Django Rest Framework. What I want as output is : For a given child, send as response its Parent's and Grandparent's information too. -
how to add list to many=True serializer in django
I have list [1, 2, 3] and TestModel queryset [ {'pk':1,'text':'one'}, {'pk':2,'text':'two'}, {'pk':3,'text':'three'}] and I have model and serializer like following class TestMode(models.Model): text = models.CharField(max_length=10) class TestModelSerializer(serializer.ModelSerializer): class Meta: model = TestModel fields = ('pk', 'text') I want to make data like [{'pk':1, 'text':'one', 'number':1}, {..., 'number':2}, {..., 'number':3}] How can i do that??? i don't have any idea... please help me -
Show RSS feed using internal RSS relative url
I have RSS Feed for my website developed using https://github.com/pbs/django-cms-feed-generator. The RSS Feed is working and it can be accessed at http://127.0.0.1:8000/rss/ on my local development environment and https://www.example.com/rss/ on my production environment. I have the RSS Feed working okay if I access them via their respective urls on the website. But the problem comes when I use https://github.com/guangwenz/django-rss-plugin to display the RSS Feed on my website. The problem is at this line Show any RSS feed you specified, it can be your external RSS url, or your internal RSS relative url like '/myblog/rss'. I want to use internal RSS relative url to access http://127.0.0.1:8000/rss/ so I set /rss/ under RSS URL for the plugin instance but nothing is displayed! What I expect is to be able to retrieve all the available RSS Feeds when I set /rss/ under RSS URL for the plugin instance. I tried setting external RSS url and it worked okay but nothing works for internal RSS relative url -
Ordering queryset based on related M2M fields
I'm currently trying to return a queryset based off of three models. Location model class Location(models.Model): ... lat = models.FloatField() lng = models.FloatField() User model (extended from Django User) class UserProfile(models.Model): ... locations = ManyToManyField(Location) Case Model class Case(models.Model): ... completed = models.BooleanField() I'm using geopy to return locations close to an inputted lat/long def get_locations_nearby_coords(latitude, longitude, max_distance=None): """ Return objects sorted by distance to specified coordinates which distance is less than max_distance given in kilometers """ # Great circle distance formula gcd_formula = "6371 * acos(cos(radians(%s)) * cos(radians(lat)) * cos(radians(long) - radians(%s)) + sin(radians(%s)) * sin(radians(lat)))" distance_raw_sql = RawSQL( gcd_formula, (latitude, longitude, latitude) ) qs = Location.objects.all().annotate( distance=distance_raw_sql).order_by('distance') if max_distance is not None: qs = qs.filter(distance__lt=max_distance) return qs What I'm aiming to return, is the 10 closest locations ordered by the number of completed cases for each UserProfile A user can have many locations, and a location can be associated with many users hence why I went with an m2m field. I can't have any duplicates, however, a location can show twice in the list IF there are multiple users at that location, but the final list should be sliced at 10. -
Incorrect display PasswordChangeForm with additional html span tag
Im actually struggling with PasswordChangeForm in Django, but I don't know why label and input for password confirmation display on right side. I guess its an issue with span class helptext which should be smaller which dont disturb for pass.conf input. Look at my pic and code: https://ibb.co/3CjTVrt I've tried to apply some mods in CSS file with no results. def change_password(request): if request.method == "POST": form = PasswordChangeForm(user=request.user, data=request.POST) if form.is_valid(): user = form.save() update_session_auth_hash(request, user) # Important! messages.success(request, 'Hasło zostało pomyślnie zmienione.') return redirect("flats_rent:zmień_hasło") else: form = PasswordChangeForm(request.user) response = render(request, 'flats_rent/settings.html', {'form': form}) response.set_cookie('password_changed', 'true') return response Expected: correct display of the form with 3 fields under themselves Actual: just like in the pic -
How to create Django model with django-redshift-backend
I have connected my django app to a redshift DataBase through django-redshift-backend. But as inspectdb doesn't work on redshift how can I build my django models that is refering to a table of redshift? Thanks for your help. -
How to integrate Django-axes with Django-two-factor-auth?
I am attempting to integrate Django-axes with django-two-factor-auth, but running into an error when posting the first step in the authentication form: AxesBackend requires a request as an argument to authenticate I am guessing that I should be overriding the AuthenticationForm from Django.contrib.auth since that is where authenticate gets called, but not sure what to pass as the request: class LoginForm(AuthenticationForm): class Meta: fields = ('username', 'password') def clean(self): username = self.cleaned_data.get('username') password = self.cleaned_data.get('password') if username is not None and password: self.user_cache = authenticate(self.request, username=username, password=password) if self.user_cache is None: raise self.get_invalid_login_error() else: self.confirm_login_allowed(self.user_cache) return self.cleaned_data I have also overridden the view and multiple methods with no luck. Any help on this would be much appreciated. Let me know if more info is needed.