I will best explain what I mean with an example.
Lets say we have a simple model called Book.
class Book(models.Model):
user = models.ForeignKey(User)
name = models.CharField(max_length=255)
class Meta:
unique_together = ('user', 'name')
so `Books` are linked to users, and
Hi django-developers,
I have written a package that implements PostgreSQL and SQLite partial
indexes on top of the new class-based
indexes: https://github.com/mattiaslinnap/django-partial-index
The most common use case is partial unique constraints, but I have a few
projects where non-unique pa
I think the current behaviour is correct. Django shouldn't make any
assumptions about fields not in the form since it doesn't know what will
happen… In that sense I disagree with the statement:
> From my point of view when I define a ModelForm I imagine that I have to
only explain what the user
Hi Jay,
First, I'd like to say that your post was very nicely done. You did not miss
any conventions as far as I could see. I believe the only reason you got no
responses so far is that the issue is relatively fringe, and your message was
relatively long.
For the subject matter, though, it see
Thank you for the replay Florian, I will think about what you said that
Django shouldn't make any assumptions about fields outside the form, but my
intuition
tells me that there are more staff which we could be retrieved from the
ModelForm's.
Some of my initial thoughts:
If the ModelForm does
Thanks for the feedback! Watchdog does include a stat watcher, and I think
we can delegate to that. Currently we turn on the file system notifications
if the library is available, but we should add a '--stat' flag to disable
this it you are running on filesystems that don't support this. At which
p
Hello Tom,
I think the PR is on the right track. Now it needs to be taken beyond the
"proof of concept" stage.
Once you have code, docs, and if possibly some tests — currently there are few
due to the difficulty of testing auto reloading, especially edge cases — for
steps 1 and 2, I can review
Triaged
---
https://code.djangoproject.com/ticket/28667 - Documentation for extending
UserCreationForm doesn't work with UserAdmin (accepted)
https://code.djangoproject.com/ticket/28669 -
bool(ungettext_lazy('%(value)d blah', '%(value)d blahs', 'value')) returns
False (duplicate)
https
I have a website where the user can be put three numbers on my html
template and get some results from my personal mathematical algorithm. the
result save at user personal table on my database and can see in specific
tab in my website.
my problem is where the algorithm to calculate result may
This is the mailing list for the development of Django itself, I would post
this to the Django users mailing list instead if you want any answers to
your question.
It sounds like an ideal use case for celery though.
On 8 Oct 2017 01:41, "Xristos Xristoou" wrote:
I have a website where the user
10 matches
Mail list logo