The app of mine that is having this issue was creating using Django
1.0 and I've since upgraded to 1.1. Could that be the issue? If it
is how do I upgrade an app to the new version?
Daniel
On Aug 6, 8:35 am, Daniel Brown wrote:
> Good morning list,
>
> I've been
Hi,
I have installed the django tagging either by the using the setup.py
or
copying the "tagging" directory.
But when I import tagging in the python shell it raised:
IDLE 2.6.2 No Subprocess
>>> import tagging
Traceback (most recent call last):
File "", line 1, in
On Sat, Aug 8, 2009 at 10:17 AM, David Haas wrote:
>
> Fair enough. I've got some style questions about the best way to do
> what I want to do, but they're probably not so relevant here.
> Something that might be relevant is this . . . is it worth submitting
> a
On Fri, 2009-08-07 at 14:44 -0700, Streamweaver wrote:
[...]
> Is there anyway around this? Anyone know if fixing this on the Django
> roadmap?
It was fixed over a year ago (before Django 1.0 came out). If you are
using anything later than that, you don't have to do *anything* to worry
about
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Wilson,
Are you referring to rendering JS with template tags, or actual
template tags in JS?
In the first case, you use them like any other template tag.
The second case is only possible if there is some JS library that uses
Django-like templates.
On Fri, 2009-08-07 at 11:40 -0700, Margie wrote:
> I see inconsistencies in how get_*_display() works based on whether
> the object is a recently saved object. Probably an example describes
> this best:
>
> My model contains this:
>
> class Task(models.Model):
>
> STATUS_CHOICES = (
>
Hellos,
I was wondering how to use {{ }} variables in javascript functions.
ex. onchange = "changeArea({{ mooman |safe|escapejs}});"
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
Fair enough. I've got some style questions about the best way to do
what I want to do, but they're probably not so relevant here.
Something that might be relevant is this . . . is it worth submitting
a documentation patch for this issue? I was thinking something on
this page:
Hi All,
I'm writing a web application using Django and have not been able to
customize the admin interface to provide the desired UI.
Now I'm trying to write the UI using ExtJS. Do I need to rewrite the
Group and User management or I should take the route of customizing
the corresponding
On Fri, 2009-08-07 at 13:36 -0700, Thomas Jaggi wrote:
> Well, after setting 'allow_future' to true everything works fine.
> Since the entries were created today I don't really get this. I'm
> using the 'pub_date' as 'date_field' and it's definitely NOT in the
> future...
Did you set the
Django since 1.0 onwards is usually fine with SCRIPT_NAME. Quite
possibly you have tweaked something in settings or setup urls.py wrong
to cause the issue. I would suggest you start over with a fresh Django
installation and create the most minimal working example of what you
are trying to do and
On Fri, 2009-08-07 at 06:15 -0700, talpay...@gmail.com wrote:
> i have come up with one of the most interesting query i have ever
> seen.
>
> I want to do this :
>
> products = products.filter(productdetail__detail_value__gte =
> first_value)
> products =
Ok, gotcha, thanks! One final question - on your web page you have a
tutorial and it references a link to the final product of the tutorial
at:
http://www.eflorenzano.com/threadedcomments/example/
However that link seems to be broken. If this is something easy to
fix, that would be nice!
On Fri, 2009-08-07 at 17:02 +0300, Mirat Bayrak wrote:
> no i am talking about User model in django!
The Django user model does not enforce unique email addresses, since
email addresses aren't necessarily one-to-one with real-world people:
there are various legitimate situations where different
On Aug 7, 3:00 pm, Masklinn wrote:
> On 7 Aug 2009, at 23:33 , Milan Andric wrote:
>
>
>
>
>
> > Hello I have two apps that have foreign keys to each other. Like:
>
> > people.models:
>
> > class Profile(Model):
> > secondary_email = CharField()
>
> > class
On Aug 7, 2:56 pm, Peter Herndon wrote:
> On 08/07/2009 05:33 PM, Milan Andric wrote:
>
>
>
> > Hello I have two apps that have foreign keys to each other. Like:
>
> > people.models:
>
> > class Profile(Model):
> > secondary_email = CharField()
>
> > class
On Aug 7, 2:54 pm, Daniel Roseman wrote:
> On Aug 7, 10:33 pm, Milan Andric wrote:
>
>
>
>
>
> > Hello I have two apps that have foreign keys to each other. Like:
>
> > people.models:
>
> > class Profile(Model):
> > secondary_email =
Hello Django-ists,
I'm looking for a Django component that solves this problem:
In real life forms are often more complex than just displaying some
fields and doing validation on them. Often fields are required or not,
they appear or not, have different validation rules based on other
fields
> * Does the .5 version work with django 1.1?
Yes, it should work just fine.
> * Do you have any sort of ETA on when you think the GitHub version
> will be ready for public use? Is it in a form now that it could
> actually be used? IE, if I am willing to dive in and look at the
> code,
On 7 Aug 2009, at 23:33 , Milan Andric wrote:
>
> Hello I have two apps that have foreign keys to each other. Like:
>
> people.models:
>
> class Profile(Model):
> secondary_email = CharField()
>
> class Staff(Profile):
> office = ForeignKey(Room)
>
>
> resources.models:
>
> class
On 08/07/2009 05:33 PM, Milan Andric wrote:
> Hello I have two apps that have foreign keys to each other. Like:
>
> people.models:
>
>class Profile(Model):
> secondary_email = CharField()
>
>class Staff(Profile):
> office = ForeignKey(Room)
>
>
> resources.models:
>
>
On Aug 7, 10:33 pm, Milan Andric wrote:
> Hello I have two apps that have foreign keys to each other. Like:
>
> people.models:
>
> class Profile(Model):
> secondary_email = CharField()
>
> class Staff(Profile):
> office = ForeignKey(Room)
>
> resources.models:
>
There's been some discussion here about what to do when you're trying
to run a Django site not under the root domain.
So for a site like http://mysite.com/django/
Django (or WSGI?) doesn't seem to be able to be able to handle the
SCRIPT_NAME ('/django' in this example) portion of the url well.
On Aug 7, 9:56 pm, justin jools wrote:
> thanks for the reply but I have access to a server for free so I wanted to
> set it up myself, how can it be so difficult? Django is renowned as an easy
> rapid development framework so why is it so difficult to deploy?
>
You
On 08/07/2009 05:25 PM, Milan Andric wrote:
> Justin, it's not. Have you seen the deployment docs?
>
> http://docs.djangoproject.com/en/dev/howto/deployment/#howto-deployment-index
>
> --
> Milan
>
> On Aug 7, 1:56 pm, justin jools wrote:
>
>> thanks for the
Hello I have two apps that have foreign keys to each other. Like:
people.models:
class Profile(Model):
secondary_email = CharField()
class Staff(Profile):
office = ForeignKey(Room)
resources.models:
class Room(Model):
name = CharField()
class Reservation(Model):
Hi all-
I am using Django 1.1 (the latest stable release, installed from the
tarball), and
upon issuing a "python manage.py syncdb" or "python manage.py
runserver" from my
project, I get the same error. I'm running this from within a pinax
virtualenv, and I am on Mac OSX version 10.4.
I've
Justin, it's not. Have you seen the deployment docs?
http://docs.djangoproject.com/en/dev/howto/deployment/#howto-deployment-index
--
Milan
On Aug 7, 1:56 pm, justin jools wrote:
> thanks for the reply but I have access to a server for free so I wanted to
> set
Also you may want to look in to slice host. Awesome service.
Vitaly Babiy
On Fri, Aug 7, 2009 at 4:30 PM, Dan Harris wrote:
>
> I just wanted to give a shout out as well to webfaction. I used to use
> my own virtual private server for hosting django stuff, but to cut
>
thanks for the reply but I have access to a server for free so I wanted to
set it up myself, how can it be so difficult? Django is renowned as an easy
rapid development framework so why is it so difficult to deploy?
On Fri, Aug 7, 2009 at 8:34 PM, lzantal wrote:
>
>
>
> On
Hello, i've trying to do an rss feed. I've had alook at the docs and i
have the feeds set as:
feeds = {
'latest': LatestEntries,
'categories': LatestEntriesByCategory,
}
but it doesn't say much about LatestEntriesByCategory, is this if i
have multiple catergories?
Is it possible to
Well, after setting 'allow_future' to true everything works fine.
Since the entries were created today I don't really get this. I'm
using the 'pub_date' as 'date_field' and it's definitely NOT in the
future...
--~--~-~--~~~---~--~~
You received this message because
I just wanted to give a shout out as well to webfaction. I used to use
my own virtual private server for hosting django stuff, but to cut
costs i switched to a webfaction account and it is pretty fantastic.
Super easy to set up, if you decide to go that way just drop me and
email and i'd be happy
Paulo -
Just to follow-up, I tried the patch (4092_9912_nullselect.diff), but
it being about 1500 checkins out of date, it only half worked.
In my forms.py, I ended up overriding the USStateSelect with a hack:
class HackedUSStateSelect(Select):
def __init__(self, attrs=None):
from
On Aug 7, 12:06 pm, justin jools wrote:
> This has been driving me nuts for a month.
>
> I wanted to use a free web server to do development testing and have
> found : 000webhost.com and heliohost.com which apparently support
> Python, but what about Django? Do I
Hi,
I have a Client model and I created a BrokerClient model as a proxy of
client
class Client(models.Model):
...
class BrokerClient(Client):
class Meta:
proxy = True
Now in admin the BrokerClient only shows up if I am a superuser.
I even gice all the available User permissions
Ok it seems i either asked the wrong question or did not explain well
enough.
My view has such line:
pform = ProfileForm(instance=profile)
it creates the form instance and i thought that it also loads data
from database and sends it to form, so i can use this in form
This has been driving me nuts for a month.
I wanted to use a free web server to do development testing and have
found : 000webhost.com and heliohost.com which apparently support
Python, but what about Django? Do I install that myself?
I have read the django book on deployment chapter but find
> label_from_instance was added after that version. For now the only
> thing you can do is to define __unicode__ on the Upload model, and
> that will provide the value that is displayed.
> --
> DR.
worked like a charm Daniel... thanks again!
--~--~-~--~~~---~--~~
On Fri, Aug 7, 2009 at 2:57 PM, Daniel Roseman wrote:
>
> On Aug 7, 7:33 pm, Bobby Roberts wrote:
> > hi. does anyone have any ideas why this is not working... we are
> > using django 0.96 on this particular server.
>
> label_from_instance was added
On Aug 7, 7:33 pm, Bobby Roberts wrote:
> hi. does anyone have any ideas why this is not working... we are
> using django 0.96 on this particular server.
label_from_instance was added after that version. For now the only
thing you can do is to define __unicode__ on the
I see inconsistencies in how get_*_display() works based on whether
the object is a recently saved object. Probably an example describes
this best:
My model contains this:
class Task(models.Model):
STATUS_CHOICES = (
(OPEN_STATUS, 'Open'),
(CLOSED_STATUS, 'Closed'),
hi. does anyone have any ideas why this is not working... we are
using django 0.96 on this particular server.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
Thanks for your replies,
I read the book and indeed I found what I needed.
For anyone who happens to read this and is wondering the same thing,
here's how it goes:
You extend the base form class (eg editProfileForm), add the avatar
field to it and you use the new form class by passing it as
I never know why I missed that part when I read it before.
Anyway, thanks DR for your clue.
On Aug 7, 10:23 am, Daniel Roseman wrote:
> On Aug 7, 6:16 pm, David wrote:
>
>
>
>
>
> > Hello,
>
> > My project is Web-based and I work in Django environment
On Aug 7, 5:45 pm, Cody Django wrote:
> This is weird: I used to use python2.3 on the mediatemple server, but
> recently upgraded to python2.5. I've also installed mysqldb, pil, ect
> under python2.5. I've updated my pythonpath so the python2.5 route is
> being used.
On Aug 7, 5:24 pm, SardarNL wrote:
> Hi Folks
>
> Here is the problem, we have some pages that don't contain any
> content, but rather layout the blocks which are served by other views.
> Extending the template and overriding some blocks is not a solution,
> because there are
Have you checked out:
http://code.google.com/p/django-threadedcomments/
I think it is still being updated for 1.1, but it should still work
with 1.1. I haven't used it, just know of it's existence.
Cheers,
Dan
On Aug 7, 11:44 am, Alessandro Ronchi
wrote:
> I
Hi,
[Sorry, if this has been asked before]
I defined a model using a custom manager. However, this custom manager
is not used when I call "delete()" method on an instance object. The
reason
I use a custom manager is because the model represents objects in
another
legacy database (different from
Hey folks,
Let's get some Django + PostgreSQL love going on. This is the second
call for talks: http://www.postgresqlconference.org/
Joshua D. Drake
--
PostgreSQL - XMPP: jdr...@jabber.postgresql.org
Consulting, Development, Support, Training
503-667-4564 - http://www.commandprompt.com/
The scale of this project isn't very large. It's a few models,
ideally. I'd just like my project to be as flexible, and scalable as
possible. I haven't done any use case scenarios, really. None of that
is really important to me right now. I just want to conceptualize how
a site like this would
On Aug 7, 6:16 pm, David wrote:
> Hello,
>
> My project is Web-based and I work in Django environment on Linux. Let
> me give a Scenario first.
>
> A user whose username is "peter" logins into "www.myfoo.com" online.
> After his username/password get authenticated, he arrives
Hello,
My project is Web-based and I work in Django environment on Linux. Let
me give a Scenario first.
A user whose username is "peter" logins into "www.myfoo.com" online.
After his username/password get authenticated, he arrives this webpage
"www.myfoo.com/user_login". On this page it looks
Ban co the lam dieu do mot cach de dang .Django da co phan Admin de ban
quan li dieu do.
theo cau hoi cua ban.la ban da dung admin cua django.ban chi can vao phan
quan li user roi ban tao theo user .va danh phan permission cho tung user ma
ban vua tao.
chuc ban thanh cong.
On Fri, Aug 7, 2009
This is weird: I used to use python2.3 on the mediatemple server, but
recently upgraded to python2.5. I've also installed mysqldb, pil, ect
under python2.5. I've updated my pythonpath so the python2.5 route is
being used. Everything works just fine, but I've noticed in the
traceback that
Hi Folks
Here is the problem, we have some pages that don't contain any
content, but rather layout the blocks which are served by other views.
Extending the template and overriding some blocks is not a solution,
because there are many unrelated blocks, that can not be rendered by a
single view.
I must add threaded comments to my django 1.1 app.
Is there anything already done I can use?
Any advise?
--
Alessandro Ronchi
SOASI
Sviluppo Software e Sistemi Open Source
http://www.soasi.com
--~--~-~--~~~---~--~~
You received this message because you are
I'm having some problems with a date-based view (using Django 1.1):
Not working (no entries shown):
info_dict = {
'queryset': Entry.objects.all(),
'date_field': 'pub_date',
}
urlpatterns = patterns('django.views.generic.date_based',
On Fri, Aug 7, 2009 at 10:06 AM, Jo wrote:
>
> Ok, after a bit of tinkering I think I might have found the culprit.
>
> Seems fine in Opera, and much better in Firefox when I disable Adblock
> Plus (the only add-on I've got installed!)
>
> Still a little sluggish in Firefox,
You are on the right track investigating the ContentType app.
-n
On Aug 6, 11:51 pm, chyea wrote:
> Hi all,
>
> I recently sent an email to another Django coder asking for some
> possible feedback on my situation. I'll simply restate the email here,
> because I figured why
ok here's my form:
class ParseFileChoiceField (forms.ModelChoiceField):
def label_from_instance (self,obj):
return obj.ProcessFile
class FrmParser (forms.Form):
parsefile = ParseFileChoiceField(queryset=Upload.objects.filter
On Fri, Aug 7, 2009 at 8:26 AM, Asinox wrote:
>
> No body? :(
>
Just a tip -- posts like this, which essentially translate to "!!ANSWER
ME NOW!!", sent just six hours after the original question, are going to
make some people less inclined to try to help you. If you
There is a good tutorial on this in Practical Django Projects
http://www.amazon.com/Practical-Django-Projects-Pratical/dp/1590599969
It goes a bit more into theory that I found helpful.
On Aug 6, 8:07 am, Andrin Riiet wrote:
> Hi, I'd like to shed some light on the
On Aug 7, 2:46 pm, Karen Tracey wrote:
> On Fri, Aug 7, 2009 at 8:26 AM, Asinox wrote:
>
> > No body? :(
>
> Just a tip -- posts like this, which essentially translate to "!!ANSWER
> ME NOW!!", sent just six hours after the original question, are
Ok, after a bit of tinkering I think I might have found the culprit.
Seems fine in Opera, and much better in Firefox when I disable Adblock
Plus (the only add-on I've got installed!)
Still a little sluggish in Firefox, but they are big pages on quite an
old machine. Goes from unusable to almost
i got it!! the app was not in the pythonpath... :)
On Aug 7, 3:00 pm, andreas schmid wrote:
> hi all,
>
> im really going crazy now i cant figure out where the code is wrong...
> i have a really simple model:
>
> from django.db import models
> import datetime
>
> class
no i am talking about User model in django!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group,
If this is modelform, then it should automatically give you the error
you want.
If it is not modelform, then you can create the error message you want
yourself in your custom validation.
Alan.
On Aug 7, 4:33 pm, Mirat Bayrak wrote:
> hmm you mean to use it on form?
hi all,
im really going crazy now i cant figure out where the code is wrong...
i have a really simple model:
from django.db import models
import datetime
class Post(models.Model):
title = models.CharField(max_length=250)
excerpt = models.TextField(blank=True)
body =
Hello,
i'm trying to pass a custom set_password_form to the password_reset_confirm
view. For some reason the set_password_form argument isn't honoured and i
always end up with the original SetPasswordForm.
urls.py:
from foo.accounts.forms import KrSetPasswordForm
hmm you mean to use it on form? nice ill try it :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this
i did it but django raises exception in this case, i want to re show form
page with a note *"hey this email taken"* as other errors. When you give
username that already taken you dont see exception page, you see it as form
error. I want this.
--~--~-~--~~~---~--~~
Hello,
I struggle with the start of a little conditional request.
I installed django-profiles and got django-profiles working and I have
a small login form based on the django documentation.
django-profiles covers the accounts/login url in its urls.py. So I
only had to create the
i have come up with one of the most interesting query i have ever
seen.
I want to do this :
products = products.filter(productdetail__detail_value__gte =
first_value)
products = products.filter(productdetail__detail_value__lte =
second_value)
where first_value and second_value are integers and
Im not a very good django programmer (actually im just a beginner),
but all this text makes me ask if you have done all the ground work
before starting with a project of this scale? I mean, have you
throught through user cases, drawn bunch of flow charts and
wireframes, figured out and mapped
On Fri, Aug 7, 2009 at 8:06 PM, Léon Dignòn wrote:
>
> I have an Intel C2D E2200 with 4 GB RAM. The Django docs are killing
> my browser, it feels like FireSLUG instead of Firefox 3.5 .
I don't know what to say. Your experience in no way matches my own. I
use Safari
you can add unique=True to the email field
Alan
On Aug 7, 1:14 pm, Mirat Bayrak wrote:
> User.object.create is checking for username for duplicate usernames but not
> checking for emails.. can i force him to make users emails unique ? (becouse
> on else case i want to
Hi
Its probably not the browser. I am using firefox 3.5 on an eee pc and
the documentation is fine. This is with Javascript disabled using
noscript however i just turned it on again and no noticable difference
in top readings
*You should look at the install addons of firefox, eg: some plugin
Without it's better, but still now good enough for three colors and a
little bit of text.
On Aug 7, 2:09 pm, Mirat Bayrak wrote:
> without javascript ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
No body? :(
On Aug 7, 2:11 am, Asinox wrote:
> Hi guys, in django admin the views that show the register's just have
> a link to "edit", but what happen if a need an extra(S) links to
> another views?
>
> for example:
>
> i have view that my show list of registered People, the
On Fri, Aug 7, 2009 at 6:57 AM, Shuge Lee wrote:
>
> For user could login with email or username,
> I did as what this page
> http://www.djangosnippets.org/snippets/74/
> said
>
> [snip]
>
> Then I found somthing wrong,
>
> first, admin view doesn't work well,
>
without javascript ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
I have an Intel C2D E2200 with 4 GB RAM. The Django docs are killing
my browser, it feels like FireSLUG instead of Firefox 3.5 .
Hate it!
On Aug 7, 1:46 pm, Jo wrote:
> Surely can't only be me that finds the main Django site painfully
> slow? There is some javascript
Greetings
I have extended my admin add screen (tabularinline) by using the
http://www.djangosnippets.org/snippets/1594/
Now I have a field in my model:
start = models.CharField(max_length=5)
this is intended as a special time format, it will be in a HH:MM
format such as 16:30 . Now I want to
This is the last day that the Call for Proposals will be open, it
closes at 12pm EST. Please ensure you get your talk in before the
deadline closes. You can find the talk submit form in the conference
section of the site.
The full schedule for the conference will be posted tomorrow
(Saturday,
i am not expert but i thought that it can be about javascripts, can you
disable javascript support and retry it? i think you have to try opera too
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
Surely can't only be me that finds the main Django site painfully
slow? There is some javascript in there or something that just kills
my browser.
I'm using Firefox on Linux, on 1.5gig P4, OK not state of the art but
it's fine for pretty much any other website, but when I try to look
something
Hello,
I installed django-profiles and added an extended UserProfile. One
template displays all fields which are necessary to edit a users
profile. Every user can choose a favorite aeroplane. Every aeroplane
is built by one manufacturer.
I print the edit form in the template with {{ form }}.
For user could login with email or username,
I did as what this page
http://www.djangosnippets.org/snippets/74/
said
# in settings.py
# ...
AUTHENTICATION_BACKENDS = (
'online.accounts.backends.EmailOrUsernameModelBackend',
'django.contrib.auth.backends.ModelBackend'
)
# ...
l...@lab
Hi, i liked you project look slike simple cv center. May be you can think
about usability. For example creating items has too much steps. May be you
can put all that forms into one page. Or may be forms can by dynamicaly
shown above *create another foo item* with jquery. In other sides i liked
The first project I do by using Django, http://www.cvcenter.cn, please take
a look, and enjoy.
Any feedback will be appreciated.
Thanks a lot
--
===
Regards
Ronghui Yu
--~--~-~--~~~---~--~~
You received this message because you are
User.object.create is checking for username for duplicate usernames but not
checking for emails.. can i force him to make users emails unique ? (becouse
on else case i want to show i forgot my password screen to user i mean if
mail is already taken) what should i do?
2009/8/5 Malcolm Tredinnick
>
> On Wed, 2009-08-05 at 09:29 +0300, Mirat Can Bayrak wrote:
> > On Tue, 4 Aug 2009 16:47:37 -0500
> > Alex Gaynor wrote:
> [...]
>
> > > Right now there is a bug in django's middleware where it doesn't
> > > correct
Dear all,
I've created a new application which used the default admin site of
Django framework. I have a model which have these line of code:
Class Meta:
permissions = (('permission_name':'Readable human name'),)
This line of code created a new permission in
'auth_user_user_permissions' table
You can create a model for messages to be sent and create entries to
that model on post_save. Then you'll just have to create a command to
send unsent messages and a cron to execute that command.
On Aug 7, 9:27 am, Kenneth Gonsalves wrote:
> hi,
>
> I use a post_save
Indeed, I had been confused by this documentation excerpt ([1]):
"CharField.max_length: The maximum length (in characters) of the
field. The max_length is enforced at the database level and in
Django's validation."
Now your clear and quick explanation makes sense.
Fortunately most of my data is
On Fri, 2009-08-07 at 01:24 -0700, Thierry wrote:
> Hi,
>
> I have a model roughly defined as such (FK fields do not appear for
> simplicity):
>
> class FieldChange(models.Model):
> old_value = models.CharField(max_length=50)
> new_value = models.CharField(max_length=50)
>
> Using
On Fri, 2009-08-07 at 00:30 -0700, Jan Ostrochovsky wrote:
> Thank you, Malcolm.
>
> In fact, our current design was, as you recommended:
>
> Subject ---one-to-one-null-false--- Address ---one-to-one-null-true---
> Payment (Invoice)
>
> I want to use generic views and to join Subject+Address
Hi,
I have a model roughly defined as such (FK fields do not appear for
simplicity):
class FieldChange(models.Model):
old_value = models.CharField(max_length=50)
new_value = models.CharField(max_length=50)
Using SQLite, the table definition roughly translates to:
CREATE TABLE
Thank you, Malcolm.
In fact, our current design was, as you recommended:
Subject ---one-to-one-null-false--- Address ---one-to-one-null-true---
Payment (Invoice)
I want to use generic views and to join Subject+Address in the same
form, and model inheritance seemed to me as most straightforward
1 - 100 of 106 matches
Mail list logo