Re: Serialization

2009-02-05 Thread issya
ermapnuke/ > > If you drill into the code look for mmap.js for the client side stuff > and ajax.php for the server side. I'm porting this to Django at the > moment, and I'm looking forward to trying out Django's serializer for > this. > > Best, > BN > > On Feb 4, 11:

Re: Serialization

2009-02-04 Thread issya
n > the client side. If you are using jQuery for example, jQuery will > deserialize it for you. If you are writing the Javascript by hand, you > deserialize it by doing an "eval" on the received data. > > BN > > On Feb 4, 10:09 pm, issya <floridali...@gmail.com> wrot

Re: Serialization

2009-02-04 Thread issya
Thanks for the reply Russ. I will check into different things, you make it sound easier than it looks. :) On Feb 4, 11:33 pm, Russell Keith-Magee <freakboy3...@gmail.com> wrote: > On Thu, Feb 5, 2009 at 1:09 PM, issya <floridali...@gmail.com> wrote: > > > Thanks fo

Re: Serialization

2009-02-04 Thread issya
easy thing. On Feb 4, 10:45 pm, Russell Keith-Magee <freakboy3...@gmail.com> wrote: > On Thu, Feb 5, 2009 at 8:35 AM,issya<floridali...@gmail.com> wrote: > > > My ideal situation would be to initially load the data through ajax > > and update through ajax. But I

Serialization

2009-02-04 Thread issya
I have a page that displays 16 houses and relevant information. It also displays a Google Map with all of the markers to houses on it. Right now I have it doing a jQuery ajax load and it loading new information to 2 separate divs, thus making 2 separate requests. I know this isn't the best way to

Re: undefined in Textarea

2009-01-25 Thread issya
wrote: > On Jan 25, 7:51 pm, issya <floridali...@gmail.com> wrote: > > > > > I am making a modelform that looks like the below. > > > class ContactForm(forms.ModelForm): > >         name = forms.CharField(widget=forms.TextInput(attrs= > > {'class':'requ

undefined in Textarea

2009-01-25 Thread issya
I am making a modelform that looks like the below. class ContactForm(forms.ModelForm): name = forms.CharField(widget=forms.TextInput(attrs= {'class':'required'})) phone = forms.CharField(widget=forms.TextInput(attrs= {'class':'required'})) comments =

Can someone look at this code and let me know how crappy it is?

2008-12-11 Thread issya
I know I am probably going about this the wrong way. Can someone please help me rewrite this code so it is the right way? I am also having a problem doing pagination. When I click on the next page link, nothing is coming up. This is even if I pass through a ?city= {{ request.GET.city }} in the

Re: Complex lookups and SelectMultiple widget

2008-12-08 Thread issya
Thank you for the reply. I tried going the route of using the below. Is your way better? Since 'in' needs a list as an argument and SelectMultiple returns a list: if request.method == "POST" or request.GET.get('page', ''): search_form = SearchForm(request.POST)

Complex lookups and SelectMultiple widget

2008-12-07 Thread issya
I am working on a search form that has a SelectMultiple widget. What would be the best way to make a complex lookup with the SelectMultiple widget? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Copy data from 1 model to another

2008-11-26 Thread issya
AIL PROTECTED]> wrote: > On 26 nov, 06:24,issya<[EMAIL PROTECTED]> wrote: > > > It looks like I partly answered my own question. I just do something > > like the below to get the field names of the empty model B and I will > > iterate through the fields until 1 matches

Re: Copy data from 1 model to another

2008-11-25 Thread issya
()._meta.fields for field_name in property_field: print field_name.name On Nov 25, 11:12 am, issya <[EMAIL PROTECTED]> wrote: > Model A has 50 fields. Model B has 20 of model A's 50 fields. I am > trying to make a nightly cron job that will make a queryset of model A > based on a

Copy data from 1 model to another

2008-11-25 Thread issya
Model A has 50 fields. Model B has 20 of model A's 50 fields. I am trying to make a nightly cron job that will make a queryset of model A based on a filter and copy that information into model B. I also don't want it to copy the information if it already exists in model B. Does anyone know a good

Combine 2 querysets from 2 different models

2008-11-25 Thread issya
Hello, I have a few different projects in which I need to combine the data from 2 querysets from 2 different models. In one project I am just trying to combine this information to export into a CSV file and in another project I want to make a graph with the information. Is there any easy way to