End-user defined fields, how would you approach it?

2012-01-29 Thread Bernardo Pires
Good Morning guys! Scenario is the following. For some models on Django, I would like to allow the end user to define his own fields. It would be great if I could keep all Django awesome features like the ORM, so I can still do calls like field__gte to search on the model, still have field validati

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Etienne Robillard
Hi, 2. The second approach would be to have a database table for each of the users (probably no more than a 1000). I've read django has something in the lines of inspectdb, which actually checks which fields are there and produces the model for you. This could be useful but I think maybe I shoul

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Ivan Kharlamov
On 01/29/2012 12:18 PM, Bernardo Pires wrote: > Good Morning guys! > Scenario is the following. For some models on Django, I would like to > allow the end user to define his own fields. It would be great if I > could keep all Django awesome features like the ORM, so I can still do > calls like fiel

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Bernardo Pires
That's a great reference, many thanks ivan! On Jan 29, 4:58 pm, Ivan Kharlamov wrote: > On 01/29/2012 12:18 PM, Bernardo Pires wrote: > > > > > > > > > > > Good Morning guys! > > Scenario is the following. For some models on Django, I would like to > > allow the end user to define his own fields.

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Etienne Robillard
For other options checkout this guide:http://stackoverflow.com/a/7934577/497056 Best regards, Ivan Kharlamov Probably a really mediocre reference assuming its on stackoverflow.com already... :-) Cheers E -- You received this message because you are subscribed to the Google Groups "Djang

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Simon Charette
I've been working on a similar project which takes the django-dynamo project a bit further. It's undocumented ATM but you can find the code at: https://github.com/charettes/django-mutant -- You received this message because you are subscribed to the Google Groups "Django developers" group. To

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Ivan Kharlamov
On 01/29/2012 09:16 PM, Etienne Robillard wrote: > > >>> For other options checkout this >>> guide:http://stackoverflow.com/a/7934577/497056 >>> >>> Best regards, >>> Ivan Kharlamov > > Probably a really mediocre reference assuming its on stackoverflow.com > already... :-) Well, I'm not going t

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Etienne Robillard
On 01/29/2012 12:31 PM, Ivan Kharlamov wrote: On 01/29/2012 09:16 PM, Etienne Robillard wrote: For other options checkout this guide:http://stackoverflow.com/a/7934577/497056 Best regards, Ivan Kharlamov Probably a really mediocre reference assuming its on stackoverflow.com already... :-)

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Ivan Kharlamov
On 01/29/2012 09:39 PM, Etienne Robillard wrote: > On 01/29/2012 12:31 PM, Ivan Kharlamov wrote: >> On 01/29/2012 09:16 PM, Etienne Robillard wrote: >>> >>> > For other options checkout this > guide:http://stackoverflow.com/a/7934577/497056 > > Best regards, > Ivan Kharlamov >>>

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Aymeric Augustin
Hello Etienne, The three messages you posted in this thread aren't appropriate on this mailing list, both in terms of contents and tone. Please stay on topic, respect other members of the community, and if you don't have anything constructive to say, refrain from posting — even with a smiley.

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Etienne Robillard
On 01/29/2012 01:40 PM, Aymeric Augustin wrote: Hello Etienne, The three messages you posted in this thread aren't appropriate on this mailing list, both in terms of contents and tone. Please stay on topic, respect other members of the community, and if you don't have anything constructive to

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Dustin Farris
Without getting so complicated, something basic like key-value models.. e.g. class Person(models.Model): pass class Key(models.Model): name = models.CharField() class Attribute(models.Model): person = models.ForeignKey(Person) key = models.ForeignKey(Key) value = models.CharField() W

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Etienne Robillard
On 01/29/2012 02:46 PM, John Hensley wrote: On Jan 29, 2012, at 1:52 PM, Etienne Robillard wrote: On 01/29/2012 01:40 PM, Aymeric Augustin wrote: Hello Etienne, The three messages you posted in this thread aren't appropriate on this mailing list, both in terms of contents and tone. Please s

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Etienne Robillard
On 01/29/2012 12:55 PM, Ivan Kharlamov wrote: On 01/29/2012 09:39 PM, Etienne Robillard wrote: On 01/29/2012 12:31 PM, Ivan Kharlamov wrote: On 01/29/2012 09:16 PM, Etienne Robillard wrote: For other options checkout this guide:http://stackoverflow.com/a/7934577/497056 Best regards, Ivan K

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Etienne Robillard
On 01/29/2012 12:55 PM, Ivan Kharlamov wrote: On 01/29/2012 09:39 PM, Etienne Robillard wrote: On 01/29/2012 12:31 PM, Ivan Kharlamov wrote: On 01/29/2012 09:16 PM, Etienne Robillard wrote: For other options checkout this guide:http://stackoverflow.com/a/7934577/497056 Best regards, Ivan K

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Łukasz Rekucki
First of all, this whole topic doesn't belong on django-developers in the first place as it's strictly a user question (I didn't see any proposal to change anything in the core, etc.). In the future, please post to django-users with question about using Django. On 29 January 2012 21:44, Etienne Ro

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Etienne Robillard
On 01/29/2012 04:27 PM, Łukasz Rekucki wrote: First of all, this whole topic doesn't belong on django-developers in the first place as it's strictly a user question (I didn't see any proposal to change anything in the core, etc.). In the future, please post to django-users with question about usi

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Russell Keith-Magee
On 30/01/2012, at 6:05 AM, Etienne Robillard wrote: > On 01/29/2012 04:27 PM, Łukasz Rekucki wrote: >> >> You're not discriminated - everyone is treated the same way here and >> judged only by their actions. By disobeying the rules of this list, >> you're disrespecting it's members. If you disag

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Etienne Robillard
On 01/29/2012 07:51 PM, Russell Keith-Magee wrote: On 30/01/2012, at 6:05 AM, Etienne Robillard wrote: On 01/29/2012 04:27 PM, Łukasz Rekucki wrote: You're not discriminated - everyone is treated the same way here and judged only by their actions. By disobeying the rules of this list, you're

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Russell Keith-Magee
On 30/01/2012, at 9:51 AM, Etienne Robillard wrote: > i still think stackoverflow.com is retarded. Ie it attracts stupid peoples > with stupid questions towards stupid solutions. :-) > > As for your opinions, I respect them as always and that should be all the > same for me, ie without stupid