Hopefully it's ok to post job openings here...
The team that brought you HudsonValleyHelpWanted.com and 300+ other
job boards around the US and Canada and Cupid.com (and then sold it
all... yes those were options you wished you were in on) has started a
new project: 10LocalCoupons.com!
We're look
Given...
class Place(models.Model):
name = models.CharField(max_length=50)
class Restaurant(Place):
serves_hot_dogs = models.BooleanField()
...it is trivial to create either a place or restaurant. But how do
you take an instance that is already a place and create a restaurant
from it? Is
Here is a realistic example: I have a model Employee that is a
subclass of User, the standard django authentication class, and a
model called Supervisor that subclasses Employee.
I have Bob, an instance of Employee, that I want to promote to
Supervisor. So trying to move the Bob object to the chil
I needed to do something similar just yesterday, and did it the same
way you discovered. I agree, kinda weird:
foo = Foo.objects.get(foo.id)
On May 13, 12:25 pm, Chia Hao Lo wrote:
> I have a model Foo. If I've got a model instance foo, and I know that
> foo.value may be changed after I got it.
I work on a complex django project -- our test suite is over 1000
tests. We've begun converting them from fixtures to factories. Here's
why:
- Factories were measurably faster. At least in my local environment,
which may be more IO bound than others, but I was looking at the
results of tests and s
n you can runserver or dumpdata etc..
Good luck!
- Steve Bywater
--
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
django
I use this exact dataset. Instead of using a fixture called
initial_data.json for that whole dataset, call it something else like
zip_code.json. You can use loaddata to load it whenever you are
setting up a new environment. For your tests, have a minimal subset of
zips in initial_data, or in anothe
7 matches
Mail list logo