Long Shot: Python/Django anyone?

> 10 years ago
Reply
Register to post, see what you've read, and subscribe to topics.
evlPanda
evlPanda
NSW
9207 posts
NSW, 9207 posts
9 Dec 2009 10:59pm
Really, really impressed...

... up until I built a child table for the built-in auth_user.

class Stuff(models.Model):
username = models.ForeignKey(User, blank=False)
....

Anyone familiar with Django? Long shot I know.

Just want to default field value to current user and hide, damnit. I'm sure this is a common, basic ...pattern really, and I'm amazed it is so hard in Django. Promise I won't harass you with every little problem I come across in future, the code.google forums only go down a rabbit-hole of debating.

PM me.
nebbian
nebbian
WA
6277 posts
WA, 6277 posts
9 Dec 2009 9:35pm
Maybe this will help? stackoverflow.com/questions/755857/default-value-for-field-in-django-model

If not then asking on stackoverflow will usually net you a decent response.
Please Register, or first...
Topics Subscribe Reply