models
MVC3 - Two models in one View - Error - How to classify
I would like to use two models in one view. For that I have the following set up. In a single .cs fileI have the following model code:[详细]
2023-03-13 06:23 分类:问答How to make models connected via ManyToMany relationship editable in two places at the same time in Django admin?
I have two models - News and Subject. News model has a ManyToManyField related to Subject, like that:[详细]
2023-03-12 03:46 分类:问答Extending and loading the right content type with django models
I inherited an application from another developer...and... class LowLevelModel(models.Model): content = models.TextField()[详细]
2023-03-11 23:25 分类:问答Rails, Globalize 3 and CRUD operations
How am I supposed to write the forms for my models where I\'m using globalize3 for translations. I cannot find any examples and I don\'t find any helpers in the code.[详细]
2023-03-10 21:34 分类:问答Multiple models, one form in rails. Want to create parent while creating the nested model object in a form
I want to update multiple models with one form in rails. I have looked at Railscasts #196 and many nested model examples but can\'t get them to work. The difference is I want to create a record in the[详细]
2023-03-10 20:53 分类:问答Two models with shared methods and same table? [CakePHP]
I currently have two models: Product and Servi开发者_StackOverflow社区ce. Both share the same table structure and the same methods. However, when I update one method, I\'ll have to do the same with th[详细]
2023-03-10 10:52 分类:问答Is there a field in django that can have multiple foreign key fields?
Is there a field in django that can have multiple foreign key fields? I have the following code: from django.db import models[详细]
2023-03-10 03:02 分类:问答rails and namespaced models issue
Using rails 3/3.1 I want to store invoices with their items (and later more associations like payments, etc…).[详细]
2023-03-09 18:34 分类:问答(rails) Order by Number of Likes on a Website
I have a model called websites that has_many :likes, and of course another model called likes with belongs_to :website. I want to get an array of all the websites but order them by the number of likes[详细]
2023-03-09 14:56 分类:问答CakePHP doens't support load models?
I use CakePHP 1.3.9 but I can\'t use other Models in a Controller. I use $this->loadMod开发者_Go百科el(\'ModelName); and $this->ModelName->find(\'all\') - always empty.[详细]
2023-03-09 09:59 分类:问答