om/wiki/DynamicModels I have
created a factory function that change the db_table from "table_a" to
"table_a_[user]"
example usage :
A_100 = factory(A,'100') #change table_a to table_a_100
it works but I can't use the foreign key
a=A_100.objects.get(pk=1)
a.b_set.all()
instance when u
do a Models.object.all(), Is there a list somewhere ? (could not find
the exceptions in the API ...)
Thanks for your help
Seb
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
On 27/09/2011 10:57, David wrote:
Hello
This is my view:
@login_required
@transaction.commit_on_success
def update_person(request):
try:
person_id = int(request.POST['person_id'])
except KeyError:
raise Http404
person = Person.objects.select_related().get(pk=per
2 years later. Still, this did the trick! Thanks. Should update Django 2
docs
On Sunday, December 20, 2015 at 7:30:36 AM UTC+8, Jan studený wrote:
>
> For anyone who has this error, because static is variable it has to be
> enclosed with double curly brackets, not with percentage ones.
> SOLUTIO
4 matches
Mail list logo