In my Django 1.2.4 site, I would like to direct the user to an admin page that is pre-filled out with some values, based on the current data they are working with. For example:  {% for person in people %}     <tr>         <td>{{person}}&l...
Here's part of my models.py:  class Person(models.Model):     birth_year = WideYear(null=True, blank=True)     birth_year_uncertain = models.BooleanField()     death_year = WideYear(null=True, blank=True)     death_year_uncertain = models.Boolean...
I'm trying to set a field default value based on other field selection that is foreign. Basically, these are the classes:  class Product(models.Model):         description = models.CharField('Description', max_length=200)         price =...
In the django admin panel I currently have a DateField showing a nice Javascript calendar for inputting dates. However, I am only interested in the Month and Year. So I was wondering if it was possible to have the calendar only show the months and ye...
I use Django built-in widgets like AdminSplitDateTime. However, strings used in this widget aren't localized as they're in JavaScript. How to correct that?...
In my current project I'm using this calendar.js javascript library together AngularJS.  I'm bind calendar.js widget and AngularJS ng-model to my input field in this way:  <input class="vDateField" type="text" ng-model="...
I get an error when I display a form in django admin (update form):  Uncaught ReferenceError: django is not defined   The error is in the lines below:  (function($) {   $("#participations-group .tabular.inline-related tbody tr").tabularFormse...
I have a Contract class where contract_mod allows to extend a contract from a previous one. contract_mod should only show contracts related with the person that we selected previously.  The Contract class returns the field person. As I've never w...
I'm trying to use django-tinymce to make fields that are editable through Django's admin with a TinyMCE field. I am using tinymce.models.HTMLField as the field for this.  The problem is it's not working. I get a normal textarea. I check t...
I am working on a django app where I made a custom view that passes a queryset of elements to the rendered html page.  In the html page I want to have an option to select a word from a select list and If the selected word matches any element from the...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.